clang_compat.h
1 /*
2  * clang_compat.h Undefines macros of clang on OSX to use RIOT's macros
3  *
4  * Copyright (C) 2014 Thomas Eichinger <thomas.eichinger@fu-berlin.de>
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
11 #ifndef CLANG_COMPAT_H
12 #define CLANG_COMPAT_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #undef htons
19 #undef htonl
20 #undef htonll
21 #undef ntohs
22 #undef ntohl
23 #undef ntohll
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif /* CLANG_COMPAT_H */