diff options
author | Mark Janes <mark.a.janes@intel.com> | 2015-03-04 16:37:29 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-03-05 10:21:40 -0800 |
commit | 237dcb4aa7c39c59bfd225ae3d73caf709be216d (patch) | |
tree | 9139b596ac2383fa3e4ada351b94000ba9319e5f /src/mesa/drivers/dri/i965/brw_wm.h | |
parent | 2e4c95dfe2cb205c327ceaa12b44a9273bdb20dc (diff) | |
download | external_mesa3d-237dcb4aa7c39c59bfd225ae3d73caf709be216d.zip external_mesa3d-237dcb4aa7c39c59bfd225ae3d73caf709be216d.tar.gz external_mesa3d-237dcb4aa7c39c59bfd225ae3d73caf709be216d.tar.bz2 |
Fix invalid extern "C" around header inclusion.
System headers may contain C++ declarations, which cannot be given C
linkage. For this reason, include statements should never occur
inside extern "C".
This patch moves the C linkage statements to enclose only the
declarations within a single header.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h index f54530f..32d1ce3 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.h +++ b/src/mesa/drivers/dri/i965/brw_wm.h @@ -57,6 +57,10 @@ #define AA_SOMETIMES 1 #define AA_ALWAYS 2 +#ifdef __cplusplus +extern "C" { +#endif + /** * Compile a fragment shader. * @@ -86,4 +90,8 @@ bool brw_wm_prog_data_compare(const void *a, const void *b); void brw_upload_wm_prog(struct brw_context *brw); +#ifdef __cplusplus +} // extern "C" +#endif + #endif |