mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-05 02:47:05 +00:00
merge from gcc
This commit is contained in:
parent
c121c67179
commit
8466c6d4d3
@ -1,3 +1,7 @@
|
||||
2009-06-02 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* ansidecl.h (EXPORTED_CONST): Define.
|
||||
|
||||
2009-05-31 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* ansidecl.h: Add extern "C" when compiling with C++. Treat C++
|
||||
|
@ -395,6 +395,18 @@ So instead we use the macro below and test it against specific values. */
|
||||
#define __extension__
|
||||
#endif
|
||||
|
||||
/* This is used to declare a const variable which should be visible
|
||||
outside of the current compilation unit. Use it as
|
||||
EXPORTED_CONST int i = 1;
|
||||
This is because the semantics of const are different in C and C++.
|
||||
"extern const" is permitted in C but it looks strange, and gcc
|
||||
warns about it when -Wc++-compat is not used. */
|
||||
#ifdef __cplusplus
|
||||
#define EXPORTED_CONST extern const
|
||||
#else
|
||||
#define EXPORTED_CONST const
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user