[Pcsclite-cvs-commit] r1748 - trunk/PCSC/src/PCSC

Ludovic Rousseau rousseau at costa.debian.org
Thu Nov 24 16:00:30 UTC 2005


Author: rousseau
Date: 2005-11-24 16:00:29 +0000 (Thu, 24 Nov 2005)
New Revision: 1748

Modified:
   trunk/PCSC/src/PCSC/reader.h.in
Log:
Apple gcc does not support #pragma pack(push, 1) but only #pragma
pack(1)
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer,
Inc. build 4061)


Modified: trunk/PCSC/src/PCSC/reader.h.in
===================================================================
--- trunk/PCSC/src/PCSC/reader.h.in	2005-11-24 15:49:00 UTC (rev 1747)
+++ trunk/PCSC/src/PCSC/reader.h.in	2005-11-24 16:00:29 UTC (rev 1748)
@@ -119,7 +119,11 @@
 
 /* Set structure elements aligment on bytes
  * http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html */
+#ifdef __APPLE__
+#pragma pack(1)
+#else
 #pragma pack(push, 1)
+#endif
 
 /* the structure must be 6-bytes long */
 typedef struct
@@ -191,7 +195,11 @@
 } PIN_MODIFY_STRUCTURE;
 
 /* restore default structure elements alignment */
+#ifdef __APPLE__
+#pragma pack()
+#else
 #pragma pack(pop)
+#endif
 
 #endif
 




More information about the Pcsclite-cvs-commit mailing list