diff --git a/deps/getopt.c b/deps/getopt.c index f7f667a9..9743046f 100644 --- a/deps/getopt.c +++ b/deps/getopt.c @@ -187,7 +187,7 @@ int getopt_long(int argc, char* const argv[], const char* optstring, /* If longindex is not NULL, it points to a variable which is set to the index of the long option relative to longopts. */ if (longindex) - *longindex = (match - longopts); + *longindex = (int) (match - longopts); /* If flag is NULL, then getopt_long() shall return val. Otherwise, getopt_long() returns 0, and flag shall point to a variable diff --git a/src/win32_platform.h b/src/win32_platform.h index aecdf272..ee4ebcf5 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -62,15 +62,15 @@ #define _WIN32_WINNT 0x0501 #endif +#include +#include +#include + #if defined(_MSC_VER) #include #define strdup _strdup #endif -#include -#include -#include - //======================================================================== // Hack: Define things that some windows.h variants don't diff --git a/tests/empty.c b/tests/empty.c index d096636f..a4534ae5 100644 --- a/tests/empty.c +++ b/tests/empty.c @@ -75,7 +75,7 @@ int main(void) thrd_t thread; GLFWwindow* window; - srand(time(NULL)); + srand((unsigned int) time(NULL)); glfwSetErrorCallback(error_callback);