summaryrefslogtreecommitdiffstats
path: root/Include/stringobject.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/stringobject.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/stringobject.h')
-rw-r--r--Include/stringobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/stringobject.h b/Include/stringobject.h
index ff30704..7f67a1f 100644
--- a/Include/stringobject.h
+++ b/Include/stringobject.h
@@ -52,9 +52,9 @@ PyAPI_DATA(PyTypeObject) PyString_Type;
PyAPI_FUNC(PyObject *) PyString_FromStringAndSize(const char *, int);
PyAPI_FUNC(PyObject *) PyString_FromString(const char *);
PyAPI_FUNC(PyObject *) PyString_FromFormatV(const char*, va_list)
- __attribute__((format(printf, 1, 0)));
+ Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
PyAPI_FUNC(PyObject *) PyString_FromFormat(const char*, ...)
- __attribute__((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
PyAPI_FUNC(int) PyString_Size(PyObject *);
PyAPI_FUNC(char *) PyString_AsString(PyObject *);
PyAPI_FUNC(PyObject *) PyString_Repr(PyObject *, int);