libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch #6448] [MSVC 7/7] Add MSVC Support


From: Peter Rosin
Subject: Re: [patch #6448] [MSVC 7/7] Add MSVC Support
Date: Fri, 08 Aug 2008 11:42:11 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

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  <address@hidden>

        * 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)
 {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]