aboutsummaryrefslogtreecommitdiff
path: root/ports/freeglut/fix-debug-macro.patch
blob: 69f9e82bcea802b397c6aa2168b05c19426b3639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/include/GL/freeglut_std.h b/include/GL/freeglut_std.h
index a658c7c..a5efb3b 100644
--- a/include/GL/freeglut_std.h
+++ b/include/GL/freeglut_std.h
@@ -70,7 +70,7 @@
 
         /* Link with Win32 static freeglut lib */
 #       if FREEGLUT_LIB_PRAGMAS
-#           ifdef NDEBUG
+#           if defined(NDEBUG) || !defined(_DEBUG)
 #              pragma comment (lib, "freeglut_static.lib")
 #           else
 #              pragma comment (lib, "freeglut_staticd.lib")
@@ -88,7 +88,7 @@
 
             /* Link with Win32 shared freeglut lib */
 #           if FREEGLUT_LIB_PRAGMAS
-#               ifdef NDEBUG
+#               if defined(NDEBUG) || !defined(_DEBUG)
 #                   pragma comment (lib, "freeglut.lib")
 #               else
 #                   pragma comment (lib, "freeglutd.lib")
diff --git a/src/blackberry/fg_main_blackberry.c b/src/blackberry/fg_main_blackberry.c
index a1b9cbb..a20c53d 100644
--- a/src/blackberry/fg_main_blackberry.c
+++ b/src/blackberry/fg_main_blackberry.c
@@ -31,7 +31,7 @@
 #include "fg_internal.h"
 #include "egl/fg_window_egl.h"
 
-#ifdef NDEBUG
+#if defined(NDEBUG) || !defined(_DEBUG)
 #define LOGI(...)
 #endif