Skip to content

Commit

Permalink
core-c: fix compilation with MS Clang
Browse files Browse the repository at this point in the history
it defines both __GNUC__ and _MSC_VER
  • Loading branch information
robUx4 committed May 26, 2017
1 parent d815356 commit 4ac0ea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions corec/corec/helpers/parser/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ typedef struct textwriter

NODE_DLL err_t TextWrite(textwriter*, const tchar_t*);
NODE_DLL err_t TextPrintf(textwriter*, const tchar_t* Msg,...)
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(_MSC_VER)
__attribute__ ((format(printf, 2, 3)))
#endif
;
Expand All @@ -202,7 +202,7 @@ NODE_DLL bool_t ExprCmd(const tchar_t** Expr, tchar_t* Out, size_t OutLen);
NODE_DLL bool_t ExprSkipAfter(const tchar_t** p,int ch); //ch=0 for general space
NODE_DLL bool_t ExprIsToken(const tchar_t** p,const tchar_t* Name);
NODE_DLL bool_t ExprIsTokenEx(const tchar_t** p,const tchar_t* Name,...)
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(_MSC_VER)
__attribute__ ((format(printf, 2, 3)))
#endif
;
Expand All @@ -229,7 +229,7 @@ NODE_DLL bool_t BufferToBase64(tchar_t *Out, size_t OutLen, const uint8_t *Buffe
NODE_DLL uint32_t StringToIP(const tchar_t *Addr);

NODE_DLL err_t Stream_Printf(stream*, const tchar_t* Msg,...)
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(_MSC_VER)
__attribute__ ((format(printf, 2, 3)))
#endif
;
Expand Down

0 comments on commit 4ac0ea1

Please sign in to comment.