Browse Source

add support for MinGW.

shared-context
StarWing 11 years ago
parent
commit
a07cb82780
3 changed files with 8 additions and 8 deletions
  1. +1
    -1
      example/demo.c
  2. +1
    -1
      example/perf.c
  3. +6
    -6
      premake4.lua

+ 1
- 1
example/demo.c View File

@@ -13,7 +13,7 @@

#ifdef _MSC_VER
#define snprintf _snprintf
#else
#elif !defined(__MINGW32__)
#include <iconv.h>
#endif



+ 1
- 1
example/perf.c View File

@@ -10,7 +10,7 @@

#ifdef _MSC_VER
#define snprintf _snprintf
#else
#elif !defined(__MINGW32__)
#include <iconv.h>
#endif



+ 6
- 6
premake4.lua View File

@@ -34,7 +34,7 @@ solution "nanovg"
defines { "NANOVG_GLEW" }

configuration { "windows" }
links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32" }
defines { "NANOVG_GLEW" }

configuration { "macosx" }
@@ -62,7 +62,7 @@ solution "nanovg"
defines { "NANOVG_GLEW" }

configuration { "windows" }
links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32" }
defines { "NANOVG_GLEW" }

configuration { "macosx" }
@@ -91,7 +91,7 @@ solution "nanovg"
defines { "NANOVG_GLEW" }

configuration { "windows" }
links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32" }
defines { "NANOVG_GLEW" }

configuration { "macosx" }
@@ -120,7 +120,7 @@ solution "nanovg"
defines { "NANOVG_GLEW" }

configuration { "windows" }
links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32" }
defines { "NANOVG_GLEW" }

configuration { "macosx" }
@@ -147,7 +147,7 @@ solution "nanovg"
links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3" }

configuration { "windows" }
links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32" }
defines { "NANOVG_GLEW" }

configuration { "macosx" }
@@ -174,7 +174,7 @@ solution "nanovg"
links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3" }

configuration { "windows" }
links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32" }
defines { "NANOVG_GLEW" }

configuration { "macosx" }


Loading…
Cancel
Save