summaryrefslogtreecommitdiff
path: root/src/pal/inc/rt/guiddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/inc/rt/guiddef.h')
-rw-r--r--src/pal/inc/rt/guiddef.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/pal/inc/rt/guiddef.h b/src/pal/inc/rt/guiddef.h
new file mode 100644
index 0000000000..12e51c8fc6
--- /dev/null
+++ b/src/pal/inc/rt/guiddef.h
@@ -0,0 +1,26 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+//
+
+//
+// ===========================================================================
+// File: guiddef.h
+//
+// ===========================================================================
+// simplified guiddef.h for PAL
+
+#include "palrt.h"
+
+#ifdef DEFINE_GUID
+#undef DEFINE_GUID
+#endif
+
+#ifdef INITGUID
+#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
+ EXTERN_C const GUID DECLSPEC_SELECTANY name \
+ = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
+#else
+#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
+ EXTERN_C const GUID FAR name
+#endif // INITGUID