include: implement PACKED macro for winelib apps
André Hentschel
nerv at dawncrow.de
Wed Jan 20 09:33:44 CST 2010
doesnt hurt wine but makes it easier to compile winelib apps from windows sources
---
include/windef.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/windef.h b/include/windef.h
index 8f5ea30..a0894e2 100644
--- a/include/windef.h
+++ b/include/windef.h
@@ -127,6 +127,14 @@ extern "C" {
#define _cdecl __ONLY_IN_WINELIB(__cdecl)
#endif
+#ifndef PACKED
+# ifdef __GNUC__
+# define PACKED __ONLY_IN_WINELIB(__attribute__((packed)))
+# else
+# define PACKED __ONLY_IN_WINELIB(/* nothing */)
+# endif
+#endif
+
#ifndef near
#define near __ONLY_IN_WINELIB(/* nothing */)
#endif
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list