#134 include/tss/platform.h fails on Windows

open
Kent Yoder
None
5
2010-05-24
2010-05-24
John D. Ramsdell
No

The header files fail on Windows when _BASETSD_H_ is undefined because
platform.h includes basetsd.h anyway. Please apply the patch.

John

$ diff -ur oinclude include
diff -ur oinclude/tss/platform.h include/tss/platform.h
--- oinclude/tss/platform.h 2010-03-07 04:22:20.000000000 -0500
+++ include/tss/platform.h 2010-05-24 07:43:12.502467583 -0400
@@ -24,7 +24,6 @@
typedef void* PVOID;

#elif defined(WIN32)
-#include <basetsd.h>
typedef unsigned char BYTE;
typedef signed char TSS_BOOL;
#ifndef _BASETSD_H_
@@ -32,6 +31,8 @@
typedef unsigned short UINT16;
typedef unsigned long UINT32;
typedef unsigned __int64 UINT64;
+#else
+#include <basetsd.h>
#endif
typedef unsigned short TSS_UNICODE;
typedef void* PVOID;
$

Discussion