OSDN Git Service

2006-01-25 Filip Navara <xnavara@volny.cz>
authordannysmith <dannysmith>
Thu, 26 Jan 2006 01:22:07 +0000 (01:22 +0000)
committerdannysmith <dannysmith>
Thu, 26 Jan 2006 01:22:07 +0000 (01:22 +0000)
* include/winnt.h (DECLSPEC_ALIGN): Define.

winsup/w32api/ChangeLog
winsup/w32api/include/winnt.h

index a60b79b..f4bc871 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-26  Filip Navara  <xnavara@volny.cz>
+
+       * include/winnt.h (DECLSPEC_ALIGN): Define.
+
 2006-01-24  Danny Smith  <dannysmith@users.sourceforge.net>
 
         * include/commctrl.h: Correct spelling of 'compatibility' in
index eec5993..05343c0 100644 (file)
@@ -43,6 +43,14 @@ extern "C" {
 #define UNALIGNED
 #endif
 
+#ifndef DECLSPEC_ALIGN
+#ifdef __GNUC__
+#define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
+#else
+#define DECLSPEC_ALIGN(x)
+#endif
+#endif
+
 #ifndef VOID
 #define VOID void
 #endif