[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48703] branches/soc-2012-swiss_cheese/ source/blender/gpu/GPU_extensions.h: C++ (msvc) was rejecting GPU_ext_config without cozy extern "C".

Alexander Kuznetsov kuzsasha at gmail.com
Sat Jul 7 05:43:07 CEST 2012


Revision: 48703
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48703
Author:   alexk
Date:     2012-07-07 03:43:01 +0000 (Sat, 07 Jul 2012)
Log Message:
-----------
C++ (msvc) was rejecting GPU_ext_config without cozy extern "C".
Thanks Moguri for report.

Modified Paths:
--------------
    branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_extensions.h

Modified: branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_extensions.h
===================================================================
--- branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_extensions.h	2012-07-07 02:07:33 UTC (rev 48702)
+++ branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_extensions.h	2012-07-07 03:43:01 UTC (rev 48703)
@@ -32,17 +32,13 @@
 #ifndef __GPU_EXTENSIONS_H__
 #define __GPU_EXTENSIONS_H__
 
-
-
-extern unsigned int GPU_ext_config ;
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+extern unsigned int GPU_ext_config ;
 
 
-
 #define GPU_EXT_GLSL (1<<0)
 #define GPU_EXT_GLSL_ENABLED (GPU_ext_config & GPU_EXT_GLSL)
 #define GPU_EXT_GLSL_VERTEX (1<<1)




More information about the Bf-blender-cvs mailing list