diff options
Diffstat (limited to 'chromium/mojo/public/c/gles2/gles2_export.h')
-rw-r--r-- | chromium/mojo/public/c/gles2/gles2_export.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/mojo/public/c/gles2/gles2_export.h b/chromium/mojo/public/c/gles2/gles2_export.h new file mode 100644 index 00000000000..4f8796da069 --- /dev/null +++ b/chromium/mojo/public/c/gles2/gles2_export.h @@ -0,0 +1,26 @@ +// Copyright 2014 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 MOJO_PUBLIC_C_GLES2_GLES2_EXPORT_H_ +#define MOJO_PUBLIC_C_GLES2_GLES2_EXPORT_H_ + +#if defined(WIN32) + +#if defined(MOJO_GLES2_IMPLEMENTATION) +#define MOJO_GLES2_EXPORT __declspec(dllexport) +#else +#define MOJO_GLES2_EXPORT __declspec(dllimport) +#endif + +#else // !defined(WIN32) + +#if defined(MOJO_GLES2_IMPLEMENTATION) +#define MOJO_GLES2_EXPORT __attribute__((visibility("default"))) +#else +#define MOJO_GLES2_EXPORT +#endif + +#endif // defined(WIN32) + +#endif // MOJO_PUBLIC_C_GLES2_GLES2_EXPORT_H_ |