forked from FWGS/mainui_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextdll_menu.h
91 lines (77 loc) · 2.23 KB
/
extdll_menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
extdll.h - must be included into the all ui files
Copyright (C) 2010 Uncle Mike
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef EXTDLL_H
#define EXTDLL_H
#include "xash3d_types.h"
#ifndef EXPORT
#ifdef _WIN32
#define EXPORT __declspec(dllexport)
#elif defined(__GNUC__)
#define EXPORT __attribute__((visibility("default")))
#else
#define EXPORT
#endif
#endif
// shut-up compiler warnings
#ifdef _MSC_VER
#pragma warning(disable : 4305) // int or float data truncation
#pragma warning(disable : 4201) // nameless struct/union
#pragma warning(disable : 4514) // unreferenced inline function removed
#pragma warning(disable : 4100) // unreferenced formal parameter
#pragma warning(disable : 4244) // conversion from 'float' to 'int', possible loss of data
#pragma warning(disable : 4520) // multiple default constructors specified
#pragma warning(disable : 4996) // This function or variable may be unsafe
// disable c++11 on old msvc
#if _MSC_VER < 1800 && !defined MY_COMPILER_SUCKS
#define MY_COMPILER_SUCKS
#endif
#endif
// Misc C-runtime library headers
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#ifdef MY_COMPILER_SUCKS
// C++11 keywords
#define final
#define constexpr
#define override
#define nullptr NULL
#endif
#ifdef bound
#undef bound
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE (!FALSE)
#endif
#if !defined(_WIN32) && !defined(__MINGW32__)
#define stricmp strcasecmp
#define strnicmp strncasecmp
#else
#define strnicmp _strnicmp
#define stricmp _stricmp
#define snprintf _snprintf
#endif
typedef int (*cmpfunc)( const void *a, const void *b );
typedef int BOOL;
typedef int qboolean;
typedef unsigned char byte;
typedef unsigned int uint;
typedef unsigned int uint32; //!!!
#include "menu_int.h"
#endif//EXTDLL_H