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 ? git-svn-id: svn://10.0.0.236/trunk@33302 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user