[ros-diffs] [akhaldi] 48102: [PSDK] - Fix a couple of FIXMEs : UNALIGNED and RESTRICTED_POINTER definitions

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Sat Jul 17 21:19:38 UTC 2010


Author: akhaldi
Date: Sat Jul 17 21:19:38 2010
New Revision: 48102

URL: http://svn.reactos.org/svn/reactos?rev=48102&view=rev
Log:
[PSDK]
- Fix a couple of FIXMEs : UNALIGNED and RESTRICTED_POINTER definitions

Modified:
    trunk/reactos/include/psdk/ntdef.h

Modified: trunk/reactos/include/psdk/ntdef.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/ntdef.h?rev=48102&r1=48101&r2=48102&view=diff
==============================================================================
--- trunk/reactos/include/psdk/ntdef.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/ntdef.h [iso-8859-1] Sat Jul 17 21:19:38 2010
@@ -153,10 +153,25 @@
 
 #endif /* __ANONYMOUS_DEFINED */
 
-// FIXME
-#undef UNALIGNED
+#if defined(_M_MRX000) || defined(_M_ALPHA) || defined(_M_PPC) || defined(_M_IA64) || defined(_M_AMD64)
+#define ALIGNMENT_MACHINE
+#define UNALIGNED __unaligned
+#if defined(_WIN64)
+#define UNALIGNED64 __unaligned
+#else
+#define UNALIGNED64
+#endif
+#else
+#undef ALIGNMENT_MACHINE
 #define UNALIGNED
+#define UNALIGNED64
+#endif
+
+#if defined(_M_MRX000) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) && defined(ENABLE_RESTRICTED)
+#define RESTRICTED_POINTER __restrict
+#else
 #define RESTRICTED_POINTER
+#endif
 
 
 #define ARGUMENT_PRESENT(ArgumentPointer) \




More information about the Ros-diffs mailing list