win32: unify strcasecmp definitions
There was two incompatible definitions of strcasecmp, which lead to a compiler warning. Let's clean this up by only leaving one of them, and using that one all the time. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
ecd312be96
commit
544b088616
|
@ -33,6 +33,7 @@
|
|||
#include "glsl_parser_extras.h"
|
||||
#include "compiler/glsl_types.h"
|
||||
#include "main/context.h"
|
||||
#include "util/u_string.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning( disable : 4065 ) // switch statement contains 'default' but no 'case' labels
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include <strings.h>
|
||||
#include "c11/threads.h"
|
||||
#include "util/macros.h"
|
||||
#include "util/u_string.h"
|
||||
|
||||
#include "egllog.h"
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "util/os_time.h"
|
||||
#include "os/os_thread.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_string.h"
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "util/os_time.h"
|
||||
#include "os/os_thread.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_string.h"
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "util/os_time.h"
|
||||
#include "os/os_thread.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_string.h"
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
|
|
|
@ -82,9 +82,6 @@ typedef union { GLfloat f; GLint i; GLuint u; } fi_type;
|
|||
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define strcasecmp(s1, s2) _stricmp(s1, s2)
|
||||
#endif
|
||||
/*@}*/
|
||||
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <string.h>
|
||||
#include "main/macros.h"
|
||||
#include "debug.h"
|
||||
#include "u_string.h"
|
||||
|
||||
uint64_t
|
||||
parse_debug_string(const char *debug,
|
||||
|
|
Loading…
Reference in New Issue