Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: sandbox/mac/seatbelt_export.h

Issue 1855303003: Wrap deprecated sandbox functions in C++ class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/mac/seatbelt.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/seatbelt_export.h
diff --git a/sandbox/mac/seatbelt_export.h b/sandbox/mac/seatbelt_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f97476289227cab4b8aa60fbe0db1ff2da15064
--- /dev/null
+++ b/sandbox/mac/seatbelt_export.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SANDBOX_MAC_SEATBELT_EXPORT_H_
+#define SANDBOX_MAC_SEATBELT_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+
+#if defined(SEATBELT_IMPLEMENTATION)
+#define SEATBELT_EXPORT __attribute__((visibility("default")))
+#else
+#define SEATBELT_EXPORT
+#endif // defined(SEATBELT_IMPLEMENTATION)
+
+#else // defined(COMPONENT_BUILD)
+
+#define SEATBELT_EXPORT
+
+#endif // defined(COMPONENT_BUILD)
+
+#endif // SANDBOX_MAC_SEATBELT_EXPORT_H_
« no previous file with comments | « sandbox/mac/seatbelt.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698