changeset 432:b245457fb912 libavcodec

fixed mangle issue
author bellard
date Sun, 26 May 2002 15:07:57 +0000
parents 1dd34dba2b7c
children 133d2867d4b2
files common.h
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Sun May 26 14:41:53 2002 +0000
+++ b/common.h	Sun May 26 15:07:57 2002 +0000
@@ -73,12 +73,6 @@
 
 #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 @@
 #include "fastmemcpy.h"
 #endif
 
-#define MANGLE(a) #a
-
 #endif /* HAVE_AV_CONFIG_H */
 
 #endif /* !CONFIG_WIN32 */
@@ -124,6 +116,13 @@
 
 #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