[Python-checkins] python/dist/src/Include pyport.h,2.53,2.54
nascheme@users.sourceforge.net
nascheme@users.sourceforge.net
Sun, 15 Sep 2002 07:09:37 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv22415
Modified Files:
pyport.h
Log Message:
Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC
might use __attribute__ in other ways (e.g. CodeWarrior).
Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.53
retrieving revision 2.54
diff -C2 -d -r2.53 -r2.54
*** pyport.h 29 Jul 2002 13:42:04 -0000 2.53
--- pyport.h 15 Sep 2002 14:09:35 -0000 2.54
***************
*** 532,536 ****
(__GNUC__ == 2 && __GNUC_MINOR__ < 7) ) && \
!defined(RISCOS)
! #define __attribute__(__x)
#endif
--- 532,538 ----
(__GNUC__ == 2 && __GNUC_MINOR__ < 7) ) && \
!defined(RISCOS)
! #define Py_GCC_ATTRIBUTE(x)
! #else
! #define Py_GCC_ATTRIBUTE(x) __attribute__(x)
#endif