diff options
author | Chris Xiong <chirs241097@gmail.com> | 2018-02-13 00:27:21 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2018-02-13 00:27:21 +0800 |
commit | b859c1accbb2bf7b19f634346528458ccf11b6f1 (patch) | |
tree | 9edc158e77cda0000d020f27c7f17fb3d1c9014c /smelt/glfw/smelt_internal.hpp | |
parent | 7621516c1ca0ecf9f80d094763a1705c32d7458f (diff) | |
download | SMELT-b859c1accbb2bf7b19f634346528458ccf11b6f1.tar.xz |
Fixed building on Microsoft(R) Windows(TM), a.k.a. the most advanced
operating system ever.
Diffstat (limited to 'smelt/glfw/smelt_internal.hpp')
-rw-r--r-- | smelt/glfw/smelt_internal.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/smelt/glfw/smelt_internal.hpp b/smelt/glfw/smelt_internal.hpp index 5b82bf6..d7ec3c9 100644 --- a/smelt/glfw/smelt_internal.hpp +++ b/smelt/glfw/smelt_internal.hpp @@ -18,8 +18,14 @@ #include <cstdlib> #include <ctime> #include <cstdarg> +#ifdef WIN32 +#include <windows.h> +#include <intrin.h> +#define strcasecmp _stricmp +#else #include <dirent.h> #include <unistd.h> +#endif #define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> @@ -32,10 +38,6 @@ #include <vorbis/vorbisfile.h> #endif #endif -#ifdef WIN32 -#include <windows.h> -#include <intrin.h> -#endif #define xstr(s) str(s) #define str(s) #s |