OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 #include <sys/types.h> // Include something that will define __GLIBC__. | |
7 #include "utils/macros.h" | 6 #include "utils/macros.h" |
8 | 7 |
9 FORCE_LINK_THIS(kernel_wrap) | 8 FORCE_LINK_THIS(kernel_wrap) |
10 | |
11 #if defined(__native_client__) | |
12 # if defined(__GLIBC__) | |
13 # include "kernel_wrap_glibc.cc" | |
14 # else // !__GLIBC__ | |
15 # include "kernel_wrap_newlib.cc" | |
16 # endif | |
17 #elif defined(WIN32) | |
18 # include "kernel_wrap_win.cc" | |
19 #else | |
20 # error Kernel wrapping not supported on your platform! | |
21 #endif | |
OLD | NEW |