mesa/include
José Fonseca bfb4db83b6 include: Add helper header to help trap includes inside extern C.
This is just to help repro and fixing these issues with any C++ compiler --

Commiting this will of course wait until all issues are addressed.

$ scons src/glsl/
scons: Reading SConscript files ...
Checking for GCC ...  yes
Checking for Clang ...  no
Checking for X11 (x11 xext xdamage xfixes glproto >= 1.4.13)... yes
Checking for XCB (x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8)... yes
Checking for XF86VIDMODE (xxf86vm)... yes
Checking for DRM (libdrm >= 2.4.38)... yes
Checking for UDEV (libudev >= 151)... yes
warning: LLVM disabled: not building llvmpipe
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build/linux-x86_64-debug/glsl
  Compiling src/glsl/ast_array_index.cpp ...
  Compiling src/glsl/ast_expr.cpp ...
  Compiling src/glsl/ast_function.cpp ...
  Compiling src/glsl/ast_to_hir.cpp ...
  Compiling src/glsl/ast_type.cpp ...
  Compiling src/glsl/builtin_functions.cpp ...
In file included from include/c99_compat.h:28:0,
                 from src/mapi/u_compiler.h:4,
                 from src/mapi/u_thread.h:47,
                 from src/mapi/glapi/glapi.h:47,
                 from src/mesa/main/mtypes.h:42,
                 from src/mesa/main/errors.h:47,
                 from src/mesa/main/imports.h:41,
                 from src/mesa/main/core.h:44,
                 from src/glsl/builtin_functions.cpp:58:
include/no_extern_c.h:48:1: error: template with C linkage
 template<class T> class _IncludeInsideExternCNotPortable;
 ^
In file included from include/c99_compat.h:28:0,
                 from include/c11/threads.h:38,
                 from src/mapi/u_thread.h:49,
                 from src/mapi/glapi/glapi.h:47,
                 from src/mesa/main/mtypes.h:42,
                 from src/mesa/main/errors.h:47,
                 from src/mesa/main/imports.h:41,
                 from src/mesa/main/core.h:44,
                 from src/glsl/builtin_functions.cpp:58:
include/no_extern_c.h:48:1: error: template with C linkage
 template<class T> class _IncludeInsideExternCNotPortable;
 ^
  Compiling src/glsl/builtin_types.cpp ...
  Compiling src/glsl/builtin_variables.cpp ...
scons: *** [build/linux-x86_64-debug/glsl/builtin_functions.os] Error 1
scons: building terminated because of errors.

Reviewed-by: Mark Janes <mark.a.janes@intel.com>
2015-03-06 12:38:55 +00:00
..
CL clover: Update OpenCL headers to version 1.2 from Khronos. 2014-04-29 13:01:10 +02:00
D3D9 st/nine: D3DRS_FILLMODE set to 0 is D3DFILL_SOLID 2015-02-06 00:07:19 +01:00
EGL egl: Add Haiku code and support 2014-12-23 09:07:57 -05:00
GL windows/gdi: Remove. 2015-03-04 11:01:38 +00:00
GLES
GLES2 gles2: Update gl2ext.h to revision 28335 2014-10-28 16:40:18 +00:00
GLES3
HaikuGL include/haiku: fix comment typo 2014-08-28 21:41:29 -04:00
KHR
c11 c11/threads: correct assertion 2014-08-12 23:36:05 +01:00
c99 mesa: remove support for GCC older than 3.3.0 2014-12-17 08:37:05 +11:00
d3dadapter nine: Add state tracker nine for Direct3D9 (v3) 2014-11-18 02:02:54 +00:00
pci_ids i915: For the love of all that is holy, stop saying "IGD" 2015-02-18 14:51:16 -05:00
c99_alloca.h c99_alloca.h: add case for __sun 2015-03-03 08:40:13 -07:00
c99_compat.h include: Add helper header to help trap includes inside extern C. 2015-03-06 12:38:55 +00:00
c99_math.h mesa: move FLT_MAX_EXP to c99_math.h 2015-02-28 13:39:57 -07:00
no_extern_c.h include: Add helper header to help trap includes inside extern C. 2015-03-06 12:38:55 +00:00