mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Fixed VC++ warnings.
This commit is contained in:
parent
584879c759
commit
ebb7145ccc
2
deps/getopt.c
vendored
2
deps/getopt.c
vendored
|
@ -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
|
/* If longindex is not NULL, it points to a variable which is set to the
|
||||||
index of the long option relative to longopts. */
|
index of the long option relative to longopts. */
|
||||||
if (longindex)
|
if (longindex)
|
||||||
*longindex = (match - longopts);
|
*longindex = (int) (match - longopts);
|
||||||
|
|
||||||
/* If flag is NULL, then getopt_long() shall return val.
|
/* If flag is NULL, then getopt_long() shall return val.
|
||||||
Otherwise, getopt_long() returns 0, and flag shall point to a variable
|
Otherwise, getopt_long() returns 0, and flag shall point to a variable
|
||||||
|
|
|
@ -62,15 +62,15 @@
|
||||||
#define _WIN32_WINNT 0x0501
|
#define _WIN32_WINNT 0x0501
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <mmsystem.h>
|
||||||
|
#include <dbt.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#define strdup _strdup
|
#define strdup _strdup
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
#include <mmsystem.h>
|
|
||||||
#include <dbt.h>
|
|
||||||
|
|
||||||
|
|
||||||
//========================================================================
|
//========================================================================
|
||||||
// Hack: Define things that some windows.h variants don't
|
// Hack: Define things that some windows.h variants don't
|
||||||
|
|
|
@ -75,7 +75,7 @@ int main(void)
|
||||||
thrd_t thread;
|
thrd_t thread;
|
||||||
GLFWwindow* window;
|
GLFWwindow* window;
|
||||||
|
|
||||||
srand(time(NULL));
|
srand((unsigned int) time(NULL));
|
||||||
|
|
||||||
glfwSetErrorCallback(error_callback);
|
glfwSetErrorCallback(error_callback);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user