From b2e827fc77aacb58ce53554df11bbff0599bf2b5 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Mon, 23 Mar 2015 14:50:06 -0400 Subject: [PATCH] Fix declarations of global variables to only use dllimport if being compiled by Visual Studio (and used by a library other than cgraph). --- lib/cgraph/cgraph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cgraph/cgraph.h b/lib/cgraph/cgraph.h index f1e2bde02..80b3a600b 100644 --- a/lib/cgraph/cgraph.h +++ b/lib/cgraph/cgraph.h @@ -182,7 +182,7 @@ struct Agdisc_s { /* user's discipline */ /* default resource disciplines */ /*visual studio*/ -#if defined(WIN32) && !defined(CGRAPH_EXPORTS) +#if defined(_MSC_VER) && !defined(CGRAPH_EXPORTS) #define extern __declspec(dllimport) #endif /*end visual studio*/ @@ -419,7 +419,7 @@ extern agusererrf agseterrf(agusererrf); # define extern __IMPORT__ # endif #endif -#if defined(WIN32) && !defined(CGRAPH_EXPORTS) +#if defined(_MSC_VER) && !defined(CGRAPH_EXPORTS) #define extern __declspec(dllimport) #endif -- 2.40.0