diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-02-07 15:21:56 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-02-07 15:21:56 +0400 |
commit | 8cfa84ca875ac464f5e37be88dc521bb2dd89091 (patch) | |
tree | 0729e31413e2fe15bc7967cc7e794de95f503a5e /storage/connect/os.h | |
parent | 48ca5c6b44fe36b1ddbe6770c7d12789888d24f9 (diff) | |
download | mariadb-git-8cfa84ca875ac464f5e37be88dc521bb2dd89091.tar.gz |
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
Diffstat (limited to 'storage/connect/os.h')
-rw-r--r-- | storage/connect/os.h | 8 |
1 files changed, 1 insertions, 7 deletions
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 |