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/osutil.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/osutil.h')
-rw-r--r-- | storage/connect/osutil.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/connect/osutil.h b/storage/connect/osutil.h index a2cada9833f..bbc4f3d2def 100644 --- a/storage/connect/osutil.h +++ b/storage/connect/osutil.h @@ -29,7 +29,7 @@ int GetLastError(); void _splitpath(const char*, char*, char*, char*, char*); void _makepath(char*, const char*, const char*, const char*, const char*); char *_fullpath(char *absPath, const char *relPath, size_t maxLength); -bool MessageBeep(uint); +BOOL MessageBeep(uint); unsigned long _filelength(int fd); int GetPrivateProfileString( @@ -48,7 +48,7 @@ uint GetPrivateProfileInt( LPCTSTR lpFileName // initialization file name ); -bool WritePrivateProfileString( +BOOL WritePrivateProfileString( LPCTSTR lpAppName, // section name LPCTSTR lpKeyName, // key name LPCTSTR lpString, // string to add @@ -62,7 +62,7 @@ int GetPrivateProfileSection( LPCTSTR lpFileName // initialization file name ); -bool WritePrivateProfileSection( +BOOL WritePrivateProfileSection( LPCTSTR lpAppName, // section name LPCTSTR lpString, // data LPCTSTR lpFileName // file name |