Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / libgtk2ui / libgtk2ui_export.h
blob78e71e229b4c1486fa7cf32a9bdbfca8ded69bce
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
8 // Defines LIBGTK2UI_EXPORT so that functionality implemented by our limited
9 // gtk2 module can be exported to consumers.
11 #if defined(COMPONENT_BUILD)
12 #if defined(WIN32)
14 #error "LIBGTK2UI does not build on Windows."
16 #else // defined(WIN32)
17 #if defined(LIBGTK2UI_IMPLEMENTATION)
18 #define LIBGTK2UI_EXPORT __attribute__((visibility("default")))
19 #else
20 #define LIBGTK2UI_EXPORT
21 #endif
22 #endif
24 #else // defined(COMPONENT_BUILD)
25 #define LIBGTK2UI_EXPORT
26 #endif
28 #endif // CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_