[cogl/wip/rig: 33/33] emscripten: rely on emcc's EMSCRIPTEN define



commit fea7666b55e1739a80b04a5b95fc166ddafea445
Author: Robert Bragg <robert bragg intel com>
Date:   Fri Jun 13 21:21:00 2014 +0100

    emscripten: rely on emcc's EMSCRIPTEN define
    
    Instead of having our own USING_EMSCRIPTEN define, we now just rely on
    emcc's EMSCRIPTEN define.

 cogl/cogl-renderer.c          |    2 +-
 cogl/winsys/cogl-winsys-sdl.c |    4 ++--
 configure.ac                  |    1 -
 3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c
index 0e4bda9..152dafe 100644
--- a/cogl/cogl-renderer.c
+++ b/cogl/cogl-renderer.c
@@ -151,7 +151,7 @@ static CoglDriverDescription _cogl_drivers[] =
     COGL_GLES2_LIBNAME,
   },
 #endif
-#ifdef USING_EMSCRIPTEN
+#ifdef EMSCRIPTEN
   {
     COGL_DRIVER_WEBGL,
     "webgl",
diff --git a/cogl/winsys/cogl-winsys-sdl.c b/cogl/winsys/cogl-winsys-sdl.c
index f6233c7..f4fb847 100644
--- a/cogl/winsys/cogl-winsys-sdl.c
+++ b/cogl/winsys/cogl-winsys-sdl.c
@@ -95,7 +95,7 @@ static CoglBool
 _cogl_winsys_renderer_connect (CoglRenderer *renderer,
                                CoglError **error)
 {
-#ifdef USING_EMSCRIPTEN
+#ifdef EMSCRIPTEN
   if (renderer->driver != COGL_DRIVER_GLES2)
     {
       _cogl_set_error (error, COGL_WINSYS_ERROR,
@@ -190,7 +190,7 @@ _cogl_winsys_display_setup (CoglDisplay *display,
       SDL_GL_SetAttribute (SDL_GL_CONTEXT_MINOR_VERSION, 0);
       break;
 
-#elif defined (USING_EMSCRIPTEN)
+#elif defined (EMSCRIPTEN)
     case COGL_DRIVER_GLES2:
       sdl_display->video_mode_flags = SDL_OPENGL;
       break;
diff --git a/configure.ac b/configure.ac
index 406c07b..eca2ab7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -304,7 +304,6 @@ AS_IF([test "x$enable_emscripten" = "xyes"],
         enable_sdl=yes
         enable_gles2=yes
         enable_gl=no
-        AC_DEFINE([USING_EMSCRIPTEN], 1, [Cogl is being compiled with emscripten])
         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EMSCRIPTEN_SUPPORT"
       ]
 )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]