Skip to content

Commit bcbfa64

Browse files
committed
The #warning directive is a gcc extension to standard C,
and Microsoft compilers spells it differently.
1 parent d0ca955 commit bcbfa64

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Include/intobject.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
extern "C" {
1212
#endif
1313

14+
#if defined(__GNUC__)
1415
#warning "DeprecationWarning: intobject.h is going to be removed in 3.1"
16+
#elif defined(MS_WINDOWS)
17+
#pragma message("DeprecationWarning: intobject.h is going to be removed in 3.1")
18+
#endif
1519

1620
#define PyInt_Check(op) PyLong_Check(op)
1721
#define PyInt_FromString PyLong_FromString

0 commit comments

Comments
 (0)