Commit ab76cdb2 authored by Alexander Barkov's avatar Alexander Barkov

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.
parent d78d3d4f
......@@ -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
/***********************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment