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__. | 6 #include <sys/types.h> // Include something that will define __GLIBC__. |
| 7 #include "utils/macros.h" |
| 8 |
| 9 FORCE_LINK_THIS(kernel_wrap) |
7 | 10 |
8 #if defined(__native_client__) | 11 #if defined(__native_client__) |
9 # if defined(__GLIBC__) | 12 # if defined(__GLIBC__) |
10 # include "kernel_wrap_glibc.cc" | 13 # include "kernel_wrap_glibc.cc" |
11 # else // !__GLIBC__ | 14 # else // !__GLIBC__ |
12 # include "kernel_wrap_newlib.cc" | 15 # include "kernel_wrap_newlib.cc" |
13 # endif | 16 # endif |
14 #elif defined(WIN32) | 17 #elif defined(WIN32) |
15 # include "kernel_wrap_win.cc" | 18 # include "kernel_wrap_win.cc" |
16 #else | 19 #else |
17 # error Kernel wrapping not supported on your platform! | 20 # error Kernel wrapping not supported on your platform! |
18 #endif | 21 #endif |
OLD | NEW |