summaryrefslogtreecommitdiffstats
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-09-15 14:09:54 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-09-15 14:09:54 (GMT)
commit96aa0acef021f77d6e5b861201ccd952aa6f6469 (patch)
tree313b56f49f11a8453cbe46194b6c9043bdca76f8 /Include/pyerrors.h
parent7f7c3d0a9c401d7bc9a9d86ec7181cf09c4b3bab (diff)
downloadcpython-96aa0acef021f77d6e5b861201ccd952aa6f6469.zip
cpython-96aa0acef021f77d6e5b861201ccd952aa6f6469.tar.gz
cpython-96aa0acef021f77d6e5b861201ccd952aa6f6469.tar.bz2
Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC
might use __attribute__ in other ways (e.g. CodeWarrior).
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index bd44e02..119aa2e 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -83,7 +83,7 @@ PyAPI_FUNC(PyObject *) PyErr_NoMemory(void);
PyAPI_FUNC(PyObject *) PyErr_SetFromErrno(PyObject *);
PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilename(PyObject *, char *);
PyAPI_FUNC(PyObject *) PyErr_Format(PyObject *, const char *, ...)
- __attribute__((format(printf, 2, 3)));
+ Py_GCC_ATTRIBUTE((format(printf, 2, 3)));
#ifdef MS_WINDOWS
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(int, const char *);
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErr(int);
@@ -195,9 +195,9 @@ PyAPI_FUNC(int) PyUnicodeTranslateError_SetReason(
#include <stdarg.h>
PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
- __attribute__((format(printf, 3, 4)));
+ Py_GCC_ATTRIBUTE((format(printf, 3, 4)));
PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
- __attribute__((format(printf, 3, 0)));
+ Py_GCC_ATTRIBUTE((format(printf, 3, 0)));
#ifdef __cplusplus
}