Browse Source

fix missing symbol when trying to compile with both HAVE_CARBON and HAVE_COCOA

rdb 13 years ago
parent
commit
d521615f3d
1 changed files with 4 additions and 8 deletions
  1. 4 8
      panda/metalibs/pandagl/pandagl.cxx

+ 4 - 8
panda/metalibs/pandagl/pandagl.cxx

@@ -12,12 +12,10 @@
 #include "wglGraphicsPipe.h"
 #endif
 
-#ifdef HAVE_COCOA
+#if defined(HAVE_COCOA)
 #include "config_cocoadisplay.h"
 #include "cocoaGraphicsPipe.h"
-#endif
-
-#ifdef HAVE_CARBON
+#elif defined(HAVE_CARBON)
 #include "config_osxdisplay.h"
 #include "osxGraphicsPipe.h"
 #endif
@@ -53,11 +51,9 @@ init_libpandagl() {
   init_libwgldisplay();
 #endif  // HAVE_GL
 
-#ifdef HAVE_COCOA
+#if defined(HAVE_COCOA)
   init_libcocoadisplay();
-#endif
-
-#ifdef HAVE_CARBON
+#elif defined(HAVE_CARBON)
   init_libosxdisplay();
 #endif