fixed mangle issue
authorFabrice Bellard <fabrice@bellard.org>
Sun, 26 May 2002 15:07:57 +0000 (15:07 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Sun, 26 May 2002 15:07:57 +0000 (15:07 +0000)
Originally committed as revision 605 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/common.h

index c1b8c65..02a7c10 100644 (file)
@@ -73,12 +73,6 @@ typedef INT64 int64_t;
 
 #define snprintf _snprintf
 
-#ifdef HAVE_AV_CONFIG_H
-
-#define MANGLE(a) "_" #a
-
-#endif /* HAVE_AV_CONFIG_H */
-
 #else /* CONFIG_WIN32 */
 
 /* unix */
@@ -113,8 +107,6 @@ typedef signed long long INT64;
 #include "fastmemcpy.h"
 #endif
 
-#define MANGLE(a) #a
-
 #endif /* HAVE_AV_CONFIG_H */
 
 #endif /* !CONFIG_WIN32 */
@@ -124,6 +116,13 @@ typedef signed long long INT64;
 
 #include "bswap.h"
 
+#if defined(__MINGW32__) || defined(__CYGWIN__) || \
+    defined(__OS2__) || defined (__OpenBSD__)
+#define MANGLE(a) "_" #a
+#else
+#define MANGLE(a) #a
+#endif
+
 /* debug stuff */
 
 #ifndef DEBUG