mirror of https://github.com/OpenVPN/openvpn-gui
Use stdbool.h for bool
No need to define own bool/true/false values. Signed-off-by: Lev Stipakov <lev@openvpn.net>pull/738/head
parent
5880925331
commit
2242c1cca4
6
main.h
6
main.h
|
@ -26,6 +26,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
/* Define this to enable DEBUG build */
|
/* Define this to enable DEBUG build */
|
||||||
/*#define DEBUG */
|
/*#define DEBUG */
|
||||||
|
@ -64,11 +65,6 @@
|
||||||
|
|
||||||
#define MSGF_OVPN_WAIT (MSGF_USER + 1)
|
#define MSGF_OVPN_WAIT (MSGF_USER + 1)
|
||||||
|
|
||||||
/* bool definitions */
|
|
||||||
#define bool int
|
|
||||||
#define true 1
|
|
||||||
#define false 0
|
|
||||||
|
|
||||||
/* GCC function attributes */
|
/* GCC function attributes */
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define UNUSED
|
#define UNUSED
|
||||||
|
|
Loading…
Reference in New Issue