• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef BASE_BASE_API_H_
6 #define BASE_BASE_API_H_
7 #pragma once
8 
9 #ifdef ANDROID
10 // Do not upstream, this will be added later upstream,
11 // after this file is renamed to base_export.h. Not
12 // cherry-picking that since the #define's also change
13 #define BASE_API __attribute__((visibility("default")))
14 #else
15 
16 #if defined(WIN32) && defined(BASE_DLL)
17 #if defined(BASE_IMPLEMENTATION)
18 #define BASE_API __declspec(dllexport)
19 #else
20 #define BASE_API __declspec(dllimport)
21 #endif  // defined(BASE_IMPLEMENTATION)
22 #else
23 #define BASE_API
24 #endif
25 
26 #endif // ANDROID
27 
28 #endif  // BASE_BASE_API_H_
29