[Bf-blender-cvs] [418753b6a65] master: GPU: fix build error due to wrong linkage specification

Jacques Lucke noreply at git.blender.org
Mon Jul 27 11:42:16 CEST 2020


Commit: 418753b6a65e983aa45762531370f943e931341e
Author: Jacques Lucke
Date:   Mon Jul 27 11:40:47 2020 +0200
Branches: master
https://developer.blender.org/rB418753b6a65e983aa45762531370f943e931341e

GPU: fix build error due to wrong linkage specification

===================================================================

M	source/blender/gpu/GPU_platform.h

===================================================================

diff --git a/source/blender/gpu/GPU_platform.h b/source/blender/gpu/GPU_platform.h
index d9b9ee2a308..104d5ef0ddc 100644
--- a/source/blender/gpu/GPU_platform.h
+++ b/source/blender/gpu/GPU_platform.h
@@ -27,10 +27,6 @@
 #include "BLI_sys_types.h"
 #include "BLI_utildefines.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /* GPU platform support */
 
 /* GPU Types */
@@ -66,6 +62,10 @@ typedef enum eGPUSupportLevel {
   GPU_SUPPORT_LEVEL_UNSUPPORTED,
 } eGPUSupportLevel;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 bool GPU_type_matches(eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver);
 eGPUSupportLevel GPU_platform_support_level(void);
 const char *GPU_platform_support_level_key(void);



More information about the Bf-blender-cvs mailing list