mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 01:11:06 +00:00
27 lines
653 B
C
27 lines
653 B
C
|
/*
|
||
|
* \brief Include before including Linux headers in C++
|
||
|
* \author Christian Helmuth
|
||
|
* \date 2014-08-21
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* Copyright (C) 2014 Genode Labs GmbH
|
||
|
*
|
||
|
* This file is part of the Genode OS framework, which is distributed
|
||
|
* under the terms of the GNU General Public License version 2.
|
||
|
*/
|
||
|
|
||
|
#define extern_c_begin
|
||
|
|
||
|
extern "C" {
|
||
|
|
||
|
/* some warnings should only be switched of for Linux headers */
|
||
|
#pragma GCC diagnostic push
|
||
|
#pragma GCC diagnostic ignored "-Wpointer-arith"
|
||
|
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||
|
|
||
|
/* deal with C++ keywords used for identifiers etc. */
|
||
|
#define private private_
|
||
|
#define class class_
|
||
|
#define new new_
|