summaryrefslogtreecommitdiffstats
path: root/util/include
diff options
context:
space:
mode:
Diffstat (limited to 'util/include')
-rw-r--r--util/include/axutil_utils_defines.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/util/include/axutil_utils_defines.h b/util/include/axutil_utils_defines.h
index c12c842..7c975ef 100644
--- a/util/include/axutil_utils_defines.h
+++ b/util/include/axutil_utils_defines.h
@@ -119,26 +119,25 @@ extern "C"
* Calling Conventions
*/
#if defined(__GNUC__)
+
#if defined(__i386)
#define AXIS2_CALL __attribute__((cdecl))
#define AXIS2_WUR __attribute__((warn_unused_result))
#else
#define AXIS2_CALL
#define AXIS2_WUR
+#endif
+#elif defined(_WIN32)
+#define AXIS2_CALL __stdcall
+#define AXIS2_WUR
-#endif
-#else
-#if defined(__unix)
+#else /* Unix */
#define AXIS2_CALL
#define AXIS2_WUR
-
-#else /* WIN32 */
-#define AXIS2_CALL __stdcall
-#define AXIS2_WUR
-#endif
#endif
+
#define AXIS2_THREAD_FUNC AXIS2_CALL