mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Compilation failed on Debian 32-bit.
Fixing DWORD definition once again as "unsigned long", which is the way how MS defines it. modified: @ storage/connect/os.h Changing DWORD defitition @ storage/connect/tabodbc.cpp Moving "#define NODW" to proper place.
This commit is contained in:
@@ -28,7 +28,13 @@ typedef char *LPTSTR;
|
||||
typedef char *PSZ;
|
||||
typedef int INT;
|
||||
#if !defined(NODW)
|
||||
typedef unsigned int DWORD;
|
||||
/*
|
||||
sqltypes.h from unixODBC incorrectly defines
|
||||
DWORD as "unsigned int" instead of "unsigned long" on 64-bit platforms.
|
||||
Add "#define NODW" into all files including this file that include
|
||||
sqltypes.h (through sql.h or sqlext.h).
|
||||
*/
|
||||
typedef unsigned long DWORD;
|
||||
#endif /* !NODW */
|
||||
#undef HANDLE
|
||||
typedef int HANDLE;
|
||||
|
@@ -46,12 +46,12 @@
|
||||
#else
|
||||
#if defined(UNIX)
|
||||
#include <errno.h>
|
||||
#define NODW
|
||||
#include "osutil.h"
|
||||
#else
|
||||
#include <io.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#define NODW
|
||||
#endif
|
||||
|
||||
/***********************************************************************/
|
||||
|
Reference in New Issue
Block a user