]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Oops. Add more ifdeffery to the NvOptimus stuff :)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Nov 2015 14:48:26 +0000 (14:48 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Nov 2015 14:48:26 +0000 (14:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12237 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 0759f1050216e0f40f0e8b20ff7f8b6160254a2b..3f8ba42d408d3c827dd787a72abbb30f1b9ebf54 100644 (file)
@@ -36,10 +36,14 @@ extern LPDIRECT3DDEVICE9 vid_d3d9dev;
 
 #ifdef WIN32
 // Enable NVIDIA High Performance Graphics while using Integrated Graphics.
+#ifdef __cplusplus
 extern "C" {
+#endif
 __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
+#ifdef __cplusplus
 }
 #endif
+#endif
 
 mempool_t *r_main_mempool;
 rtexturepool_t *r_main_texturepool;