Peter Rosin skrev:
31: export.at:25 Export test
Exporting variables.
This patch fixes the above failure for MSVC. Cygwin/gcc and MinGW are
still happy. Is there any reason for not __declspec(dllimport)ing all
these variables?
Cheers,
Peter
2008-08-08 Peter Rosin <[EMAIL PROTECTED]>
* tests/export.at [cygwin, mingw]: dllimport all imported
variables.
diff --git a/tests/export.at b/tests/export.at
index 73fb45f..4f9d012 100644
--- a/tests/export.at
+++ b/tests/export.at
@@ -104,21 +104,21 @@ AT_DATA(main.c,
#ifdef __cplusplus
extern "C" {
#endif
-extern int v1;
-extern int v3, v4;
+LIBA_SCOPE int v1;
+LIBA_SCOPE int v3, v4;
LIBA_SCOPE const int v5, v6;
-extern const char* v7;
-extern const char v8[];
+LIBA_SCOPE const char* v7;
+LIBA_SCOPE const char v8[];
extern int v9(void);
-extern int (*v10) (void);
-extern int (*v11) (void);
+LIBA_SCOPE int (*v10) (void);
+LIBA_SCOPE int (*v11) (void);
LIBA_SCOPE int (*const v12) (void);
#ifdef __cplusplus
}
#endif
typedef struct { int arr[1000]; } large;
-extern large v13, v14, v15;
+LIBA_SCOPE large v13, v14, v15;
int main (void)
{