Skip to content

Commit 4fbfea0

Browse files
committed
Correction
1 parent eb13d63 commit 4fbfea0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/c2py/user_api.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
// ------------- Annotations for function ---------------
88

99
// The attribute are only meaningfull for clang tools, hence for clang.
10-
#ifndef __GNUC__
10+
#ifdef __clang__
1111
#define C2PY_IGNORE __attribute__((annotate("c2py_ignore")))
1212
#define C2PY_WRAP_AS_METHOD __attribute__((annotate("c2py_wrap_as_method")))
1313
#define C2PY_MODULE_INIT __attribute__((annotate("c2py_module_init")))
1414
#define C2PY_NOGIL __attribute__((annotate("c2py_nogil")))
1515
#define C2PY_RENAME(X) __attribute__((annotate("c2py_rename:" #X)))
1616
#else
17-
#define C2PY_IGNORE
18-
#define C2PY_WRAP_AS_METHOD
19-
#define C2PY_MODULE_INIT
20-
#define C2PY_NOGIL
21-
#define C2PY_RENAME(X)
17+
#define C2PY_IGNORE
18+
#define C2PY_WRAP_AS_METHOD
19+
#define C2PY_MODULE_INIT
20+
#define C2PY_NOGIL
21+
#define C2PY_RENAME(X)
2222
#endif
2323

2424
//#define C2PY_METHODS_AS_PROPERTY __attribute__((annotate("c2py_methods_as_property")))

0 commit comments

Comments
 (0)