ENH: add support for g77 extra _ at the end of functions that have an _ in the name...
[cmake.git] / Modules / CMakeCompilerABI.h
blob8980abb5affa2e3780449e4fdd2ad58e218dcc9f
1 /*--------------------------------------------------------------------------*/
3 /* Size of a pointer-to-data in bytes. */
4 #define SIZEOF_DPTR (sizeof(void*))
5 const char info_sizeof_dptr[] = {
6 'I', 'N', 'F', 'O', ':', 's', 'i', 'z', 'e', 'o', 'f', '_', 'd', 'p', 't', 'r', '[',
7 ('0' + ((SIZEOF_DPTR / 10)%10)),
8 ('0' + (SIZEOF_DPTR % 10)),
9 ']','\0'};
11 /*--------------------------------------------------------------------------*/
13 /* Application Binary Interface. */
14 #if defined(__sgi) && defined(_ABIO32)
15 # define ABI_ID "ELF O32"
16 #elif defined(__sgi) && defined(_ABIN32)
17 # define ABI_ID "ELF N32"
18 #elif defined(__sgi) && defined(_ABI64)
19 # define ABI_ID "ELF 64"
20 #elif defined(__ELF__)
21 # define ABI_ID "ELF"
22 #endif
24 #if defined(ABI_ID)
25 static char const info_abi[] = "INFO:abi[" ABI_ID "]";
26 #endif