/[ascend]/trunk/base/generic/utilities/ascConfig.h
ViewVC logotype

Diff of /trunk/base/generic/utilities/ascConfig.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 499 by johnpye, Tue Apr 18 07:25:04 2006 UTC revision 500 by johnpye, Tue Apr 18 11:55:12 2006 UTC
# Line 44  Line 44 
44  # define ASC_BUILDING_LIBASCEND  # define ASC_BUILDING_LIBASCEND
45  #endif  #endif
46    
   
47  /*  /*
48  *  *
49  *  Determine the Operating System we are building on  *  Determine the Operating System we are building on
# Line 99  Line 98 
98      New versions of GCC are able to make use of these declarations      New versions of GCC are able to make use of these declarations
99      as well.      as well.
100  */  */
101    #ifdef __WIN32__
 #ifdef __GNUC__  
 #else  
 # ifdef __WIN32__  
 #  define HAVE_DECLSPEC_DLL  
 # endif  
 #endif  
   
 #ifdef HAVE_DECLSPEC_DLL  
102  # define ASC_EXPORT(TYPE) extern __declspec(dllexport)  TYPE  # define ASC_EXPORT(TYPE) extern __declspec(dllexport)  TYPE
103  # define ASC_IMPORT(TYPE) extern __declspec(dllimport)  TYPE  # define ASC_IMPORT(TYPE) extern __declspec(dllimport)  TYPE
104  #else  #else
105  # define ASC_EXPORT(TYPE) extern TYPE  # ifdef HAVE_GCCVISIBILITY
106  # define ASC_IMPORT(TYPE) extern TYPE  #  define ASC_EXPORT(TYPE) extern __attribute__ ((visibility("default"))) TYPE
107    #  define ASC_IMPORT(TYPE) extern TYPE
108    # else
109    #  define ASC_EXPORT(TYPE) extern TYPE
110    #  define ASC_IMPORT(TYPE) extern TYPE
111    # endif
112  #endif  #endif
113    
114  #ifdef ASC_BUILDING_LIBASCEND  #ifdef ASC_BUILDING_LIBASCEND
# Line 129  Line 125 
125      An attempt to prevent unexported symbols from slipping through      An attempt to prevent unexported symbols from slipping through
126      the net when developing with GCC on linux:      the net when developing with GCC on linux:
127  */  */
128  /*  #ifdef HAVE_GCCVISIBILITY
 #if defined(__GNUC__) && __GNUC__ >= 4  
129  # pragma GCC visibility push(hidden)  # pragma GCC visibility push(hidden)
130  #endif  #endif
 */  
131    
132  /**  /**
133      What kind of C compiler do we have?      What kind of C compiler do we have?

Legend:
Removed from v.499  
changed lines
  Added in v.500

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22