From 8cfa84ca875ac464f5e37be88dc521bb2dd89091 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 7 Feb 2013 15:21:56 +0400 Subject: Fixing compilation warnings: Using "bool" in pure C code is not a good idea. - Defining BOOL as "long" on Unix (this is how MS defines it) - Replacing bool to BOOL in pure C code. modified: storage/connect/global.h storage/connect/inihandl.c storage/connect/os.h storage/connect/osutil.c storage/connect/osutil.h --- storage/connect/os.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'storage/connect/os.h') diff --git a/storage/connect/os.h b/storage/connect/os.h index dde202b8344..282eab1d9d7 100644 --- a/storage/connect/os.h +++ b/storage/connect/os.h @@ -26,6 +26,7 @@ typedef unsigned char BYTE; typedef char *LPSTR; typedef char *LPTSTR; typedef char *PSZ; +typedef long BOOL; typedef int INT; #if !defined(NODW) /* @@ -39,13 +40,6 @@ typedef unsigned long DWORD; #undef HANDLE typedef int HANDLE; -/* TODO-BAR: remove this */ -#ifdef __cplusplus -typedef int bool; -#else -#define bool my_bool -#endif - #define stricmp strcasecmp #define _stricmp strcasecmp #define strnicmp strncasecmp -- cgit v1.2.1