diff options
Diffstat (limited to 'Build/source/libs/graphite/include/graphite/GrMstypes.h')
-rw-r--r-- | Build/source/libs/graphite/include/graphite/GrMstypes.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Build/source/libs/graphite/include/graphite/GrMstypes.h b/Build/source/libs/graphite/include/graphite/GrMstypes.h new file mode 100644 index 00000000000..2fc9f108009 --- /dev/null +++ b/Build/source/libs/graphite/include/graphite/GrMstypes.h @@ -0,0 +1,40 @@ +#ifndef _MSTYPES_H +#define _MSTYPES_H +/******** +This header contains the MS Win32 specific types that are still used +throughout the Graphite code. + +It is intended to allow Graphite to build on non-Win32 platforms. + + **Do NOT include this when building against WIN32** + + TSE - 15/07/2003 +********/ + +#if defined(_WIN32) + #error Do not include this header when building against Win32 APIs +#else + +#if defined(GR_NAMESPACE) +namespace gr +{ +#endif + +typedef wchar_t OLECHAR; + +typedef signed long HRESULT; + +inline const long InterlockedIncrement(long *const intr_lck) { + return ++*intr_lck; +} + +inline const long InterlockedDecrement(long *const intr_lck) { + return --*intr_lck; +} + +#if defined(GR_NAMESPACE) +} +#endif + +#endif // defined(_WIN32) +#endif // include guard |