]> git.cworth.org Git - apitrace/blobdiff - compat.h
TODO: Fix typo in the description of the range specification.
[apitrace] / compat.h
index d49955bf4d5750a7c58f471b4708f481c15c868f..74b45c3c211535955f25ef69f6c880e4627466aa 100644 (file)
--- a/compat.h
+++ b/compat.h
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
- * Copyright 2007-2009 VMware, Inc.
- * All rights reserved.
  *
  **************************************************************************/
 
+/*
+ * MinGW compatability macros to allow using recent's DXSDK headers.
+ */
+
 #ifdef __MINGW32__
+
 #define __in /**/
 #define __out /**/
 #define __inout /**/
 #define __field_ecount_full(x) /**/
 #define __inline static __inline__
 
+#ifndef DECLSPEC_DEPRECATED
 #define DECLSPEC_DEPRECATED /**/
+#endif
 
-#define UINT8 uint8_t
-
+#ifndef __MINGW64_VERSION_MAJOR
+#define UINT8 unsigned char
 #endif
 
+#endif /* __MINGW32__ */
+