fieker-DuValspielwiese
Last change
on this file since 8797746 was
72ebdb,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: forgotten generator cplusplus.cc
|
-
Property mode set to
100644
|
File size:
889 bytes
|
Line | |
---|
1 | #include <stdio.h> |
---|
2 | |
---|
3 | #define QUOTEME_(x) #x |
---|
4 | #define QUOTEME(x) QUOTEME_(x) |
---|
5 | |
---|
6 | int main(void) |
---|
7 | { |
---|
8 | int ret; |
---|
9 | # ifdef __cplusplus |
---|
10 | printf("#ifndef __cplusplus \n" ); |
---|
11 | printf("/*BEWARE: this fix can lead to problems if cf_gmp.h is publicly installed, while mixing different (versions of) compilers!!!*/\n" ); |
---|
12 | printf("#define __cplusplus %s\n", QUOTEME( __cplusplus )); // System current compiler DEPENDENT!!! |
---|
13 | printf("#endif /*__cplusplus*/\n" ); |
---|
14 | ret = 0; |
---|
15 | # else |
---|
16 | ret = 1; |
---|
17 | # endif |
---|
18 | |
---|
19 | return ret; |
---|
20 | /* |
---|
21 | #define __cplusplus_backup __cplusplus |
---|
22 | |
---|
23 | #ifdef __cplusplus_backup |
---|
24 | printf("__cplusplus_backup: %s\n", QUOTEME(__cplusplus_backup) ); |
---|
25 | #else |
---|
26 | printf("undefined __cplusplus_backup!\n"); |
---|
27 | #endif |
---|
28 | |
---|
29 | #undef __cplusplus |
---|
30 | |
---|
31 | #ifdef __cplusplus_backup |
---|
32 | printf("__cplusplus_backup: %s\n", QUOTEME(__cplusplus_backup) ); |
---|
33 | #else |
---|
34 | printf("undefined __cplusplus_backup!\n"); |
---|
35 | #endif |
---|
36 | */ |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.