[Pcsclite-cvs-commit] CVS PCSC/src/PCSC
CVS User rousseau
ludovic.rousseau@free.fr
Wed, 27 Apr 2005 09:25:44 +0000
Update of /cvsroot/pcsclite/PCSC/src/PCSC
In directory haydn:/tmp/cvs-serv27754/PCSC
Modified Files:
wintypes.h
Log Message:
only use "__attribute__ ((deprecated))" if __GNUC__ is defined.
Otherwise it does not compile with Solaris C compiler.
Thanks to Jeffrey Hutzelman for the patch
--- /cvsroot/pcsclite/PCSC/src/PCSC/wintypes.h 2005/04/12 12:09:18 1.10
+++ /cvsroot/pcsclite/PCSC/src/PCSC/wintypes.h 2005/04/27 09:25:44 1.11
@@ -4,7 +4,7 @@
* Copyright (C) 1999
* David Corcoran <corcoran@linuxnet.com>
*
- * $Id: wintypes.h,v 1.10 2005/04/12 12:09:18 rousseau Exp $
+ * $Id: wintypes.h,v 1.11 2005/04/27 09:25:44 rousseau Exp $
*/
/**
@@ -50,7 +50,12 @@
/* this type is deprecated but still used by old drivers and applications
* You should use LPTSTR instead */
- typedef char *LPSTR __attribute__ ((deprecated));
+ typedef char *LPSTR
+#ifdef __GNUC__
+ /* __attribute__ is a GCC only extension */
+ __attribute__ ((deprecated))
+#endif
+ ;
#else
#include <windows.h>