1 |
|
/* lt_system.h -- system portability abstraction layer |
2 |
|
|
3 |
< |
Copyright (C) 2004, 2007 Free Software Foundation, Inc. |
3 |
> |
Copyright (C) 2004, 2007, 2010 Free Software Foundation, Inc. |
4 |
|
Written by Gary V. Vaughan, 2004 |
5 |
|
|
6 |
|
NOTE: The canonical source of this file is maintained with the |
76 |
|
# endif |
77 |
|
#endif |
78 |
|
|
79 |
+ |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
80 |
+ |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
81 |
+ |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
82 |
+ |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
83 |
+ |
# define LT_DLSYM_CONST |
84 |
+ |
#elif defined(__osf__) |
85 |
+ |
/* This system does not cope well with relocations in const data. */ |
86 |
+ |
# define LT_DLSYM_CONST |
87 |
+ |
#else |
88 |
+ |
# define LT_DLSYM_CONST const |
89 |
+ |
#endif |
90 |
+ |
|
91 |
|
/* Canonicalise Windows and Cygwin recognition macros. |
92 |
|
To match the values set by recent Cygwin compilers, make sure that if |
93 |
|
__CYGWIN__ is defined (after canonicalisation), __WINDOWS__ is NOT! */ |