Use stdbool.h for bool

No need to define own bool/true/false values.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
pull/737/head
Lev Stipakov 2025-03-31 16:41:23 +03:00
parent 068ed823bd
commit 877a2a36d6
2 changed files with 2 additions and 6 deletions

6
main.h
View File

@ -26,6 +26,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <tchar.h>
#include <stdbool.h>
/* Define this to enable DEBUG build */
/*#define DEBUG */
@ -64,11 +65,6 @@
#define MSGF_OVPN_WAIT (MSGF_USER + 1)
/* bool definitions */
#define bool int
#define true 1
#define false 0
/* GCC function attributes */
#ifdef _MSC_VER
#define UNUSED

View File

@ -38,7 +38,7 @@
extern options_t o;
bool
BOOL
CheckIServiceStatus(BOOL warn)
{
SC_HANDLE schSCManager = NULL;