зеркало из https://github.com/mozilla/gecko-dev.git
Make sure nsTarget.h is complied as C++ source.
nsTarget.h is a c++ header, which includes other c++ headers. It needs to be complied as c++ source. If everything in this page needs to be compiled as C code, then why isnt this file a .c file ?
This commit is contained in:
Родитель
8bcf74c4f4
Коммит
3a1a4a1d14
|
@ -24,8 +24,25 @@ extern "C" {
|
|||
#include "xp.h"
|
||||
#include "xpgetstr.h"
|
||||
#include "prprf.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/*
|
||||
* This is a c++ header, which includes other c++ headers. It needs to
|
||||
* be complied as c++ source.
|
||||
*
|
||||
* If everything in this page needs to be compiled as C code, then why
|
||||
* isnt this file a .c file ?
|
||||
*
|
||||
*/
|
||||
#include "nsTarget.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#ifdef XXX
|
||||
extern int CAPS_TARGET_RISK_STR_LOW;
|
||||
extern int CAPS_TARGET_RISK_STR_MEDIUM;
|
||||
|
|
Загрузка…
Ссылка в новой задаче