diff options
author | David Zero <zero@cpp.edu> | 2016-12-02 04:37:23 -0800 |
---|---|---|
committer | David Zero <zero@cpp.edu> | 2017-01-04 13:44:39 -0800 |
commit | f3469070fe899e8e4fd88665386a55bad9f77cd8 (patch) | |
tree | c24743d266d3a8593792ef3e8661006cb283368a /toxcore/network.c | |
parent | 535b8238fd191710e1e8864f302fba5a02f52b1d (diff) |
Portability fixes
- CFLAG gnu99 was changed to c99.
- CXXFLAG c++98 was changed to c++11.
- CFLAG -pedantic-errors was added so that non-ISO C now throws errors.
- _XOPEN_SOURCE feature test macro added and set to 600 to expose SUSv3
and c99 definitions in modules that required them.
- Fixed tests (and bootstrap daemon logging) that were failing due to
the altered build flags.
- Avoid string suffix misinterpretation; explicit narrowing conversion.
- Misc. additions to .gitignore to make sure build artifacts don't wind
up in version control.
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index 31e8fd8b..250a304b 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -21,6 +21,8 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #define _XOPEN_SOURCE 600 | ||
25 | |||
24 | #if defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_WINXP | 26 | #if defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_WINXP |
25 | #define _WIN32_WINNT 0x501 | 27 | #define _WIN32_WINNT 0x501 |
26 | #endif | 28 | #endif |