summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-09-27 17:19:53 +0000
committerjsorg71 <jsorg71>2007-09-27 17:19:53 +0000
commitdb2ecb2701f6b96eec566f643107c528a1d23f38 (patch)
treeda69e3b7d5a381af453337f3021d7ab4528db69e
parent417e05a7bd0fedde1adb629895090ad58021d7b7 (diff)
downloadxrdp-proprietary-db2ecb2701f6b96eec566f643107c528a1d23f38.tar.gz
xrdp-proprietary-db2ecb2701f6b96eec566f643107c528a1d23f38.zip
win64 tbus and win32 twchar
-rw-r--r--common/arch.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/arch.h b/common/arch.h
index 6e62f11a..714f8f59 100644
--- a/common/arch.h
+++ b/common/arch.h
@@ -76,6 +76,19 @@ typedef int ti32;
typedef unsigned int tui32;
typedef signed int tsi32;
typedef long tbus;
+#if defined(_WIN64)
+/* Microsoft's VC++ compiler uses the more backwards-compatible LLP64 model.
+ Most other 64 bit compilers(Solaris, AIX, HP, Linux, Mac OS X) use
+ the LP64 model.
+ long is 32 bits in LLP64 model, 64 bits in LP64 model. */
+typedef __int64 tbus;
+#else
+typedef long tbus;
+#endif
+#if defined _WIN32
+typedef unsigned short twchar;
+#else
typedef int twchar;
+#endif
#endif