| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_ | 5 #ifndef SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_ |
| 6 #define SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_ | 6 #define SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_ |
| 7 | 7 |
| 8 #include <bsm/libbsm.h> |
| 9 |
| 10 #include "sandbox/sandbox_export.h" |
| 11 |
| 8 // Declare or include public types. | 12 // Declare or include public types. |
| 9 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 13 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
| 10 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 14 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
| 11 | 15 |
| 12 extern "C" { | 16 extern "C" { |
| 13 typedef void* xpc_object_t; | 17 typedef void* xpc_object_t; |
| 14 } // extern "C" | 18 } // extern "C" |
| 15 | 19 |
| 16 #else | 20 #else |
| 17 | 21 |
| 18 #include <xpc/xpc.h> | 22 #include <xpc/xpc.h> |
| 19 | 23 |
| 20 #endif | 24 #endif |
| 21 | 25 |
| 22 // Declare private types. | 26 // Declare private types. |
| 23 extern "C" { | 27 extern "C" { |
| 24 typedef struct _xpc_pipe_s* xpc_pipe_t; | 28 typedef struct _xpc_pipe_s* xpc_pipe_t; |
| 25 } // extern "C" | 29 } // extern "C" |
| 26 | 30 |
| 27 #endif // SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_ | 31 #endif // SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_ |
| OLD | NEW |