mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
Eliminate the windows_inc.h include from compat.h by special-casing UNREFERENCED_PARAMETER in a different way.
git-svn-id: https://svn.eduke32.com/eduke32@6071 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ee4d69093c
commit
3f5dbe17f2
2 changed files with 10 additions and 12 deletions
|
@ -28,13 +28,8 @@
|
|||
# define __has_extension __has_feature // Compatibility with pre-3.0 compilers.
|
||||
#endif
|
||||
|
||||
// XXX: only to avoid warning C4005: macro redefinition in winnt.h
|
||||
#if !defined(_MSC_VER) || _MSC_FULL_VER < 180031101
|
||||
#ifdef UNREFERENCED_PARAMETER
|
||||
#undef UNREFERENCED_PARAMETER
|
||||
#endif
|
||||
|
||||
#define UNREFERENCED_PARAMETER(x) x = x
|
||||
#ifndef UNREFERENCED_PARAMETER
|
||||
# define UNREFERENCED_PARAMETER(x) (x) = (x)
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -81,11 +76,6 @@
|
|||
# include <malloc.h>
|
||||
#endif
|
||||
|
||||
// XXX: see UNREFERENCED_PARAMETER
|
||||
#if defined _MSC_VER && _MSC_FULL_VER >= 180031101
|
||||
# include "windows_inc.h"
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
# include <TargetConditionals.h>
|
||||
# if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
# define NOMINMAX
|
||||
#endif
|
||||
|
||||
#ifdef UNREFERENCED_PARAMETER
|
||||
# undef UNREFERENCED_PARAMETER
|
||||
#endif
|
||||
|
||||
#ifdef NEED_WINSOCK2_H
|
||||
# include <winsock2.h>
|
||||
# undef NEED_WINSOCK2_H
|
||||
|
@ -134,3 +138,7 @@
|
|||
# endif
|
||||
# undef NEED_DBGHELP_H
|
||||
#endif
|
||||
|
||||
#ifndef UNREFERENCED_PARAMETER
|
||||
# define UNREFERENCED_PARAMETER(x) (x) = (x)
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue