Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-01-26 04:22:07 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2006-01-26 04:22:07 +0300
commita62ec6b340224da253ebcc1ca274f0eb386aaf9c (patch)
tree7c5269c4f36cf616ccbe27ec0206c801f833d032 /winsup/w32api
parent6fbc5c2a9b4f3edbd9437f2e3a73fdda3d3c8419 (diff)
2006-01-25 Filip Navara <xnavara@volny.cz>
* include/winnt.h (DECLSPEC_ALIGN): Define.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog4
-rw-r--r--winsup/w32api/include/winnt.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index a60b79bd9..f4bc871b5 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -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
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index eec5993bd..05343c057 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -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