mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 16:30:29 +00:00
add check for C++
This commit is contained in:
parent
18f40e08c4
commit
be22f58271
1 changed files with 2 additions and 0 deletions
|
@ -6,9 +6,11 @@
|
|||
#define COSMOPOLITAN_CXX_USING_
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma GCC diagnostic warning "-Wimplicit-function-declaration"
|
||||
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
|
||||
#pragma GCC diagnostic warning "-Wint-conversion"
|
||||
#endif
|
||||
|
||||
#if !defined(__GNUC__) && __cplusplus + 0 >= 201103L
|
||||
#define typeof(x) decltype(x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue