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

Unified Diff: base/base_api.h

Issue 6725001: Base: First pass at having base.dll: definition of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
Index: base/base_api.h
===================================================================
--- base/base_api.h (revision 0)
+++ base/base_api.h (revision 0)
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 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 BASE_BASE_API_H_
+#define BASE_BASE_API_H_
+#pragma once
+
+#if !defined(BASE_IMPLEMENTATION)
+#define BASE_IMPLEMENTATION 0
wtc 2011/03/23 22:05:12 I think we should not define BASE_IMPLEMENTATION a
rvargas (doing something else) 2011/03/23 22:59:04 BASE_DLL and BASE_IMPLEMENTATION are defined on th
+#endif
+
+#if defined(WIN32) && defined(BASE_DLL)
wtc 2011/03/23 22:05:12 Nit: I think we prefer our own OS_WIN macro over W
rvargas (doing something else) 2011/03/23 22:59:04 That's an interesting point, but in order to do th
+#if BASE_IMPLEMENTATION
wtc 2011/03/25 18:17:29 Thank you for the reply. I agree base_api.h shoul
brettw 2011/03/26 18:09:46 This sounds fine to me.
rvargas (doing something else) 2011/03/28 18:52:21 Yeah. A CL with this change is up for review (http
+#define BASE_API __declspec(dllexport)
+#else
+#define BASE_API __declspec(dllimport)
+#endif
+#else
+#define BASE_API
+#endif
+
+#endif // BASE_BASE_API_H_
Property changes on: base\base_api.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « base/base64.h ('k') | base/lazy_instance.h » ('j') | base/synchronization/lock.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698