[ Merge of http://go/wvgerrit/118703 ] Bug: 182058081 Test: WV unit/integration tests Change-Id: I2d8995b8aab864a2d2f5161d12a473d34e67bad4
34 lines
1018 B
C
34 lines
1018 B
C
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
|
|
#ifndef WVCDM_UTIL_UTIL_COMMON_H_
|
|
#define WVCDM_UTIL_UTIL_COMMON_H_
|
|
|
|
#ifdef _WIN32
|
|
# ifdef CORE_UTIL_IMPLEMENTATION
|
|
# define CORE_UTIL_EXPORT __declspec(dllexport)
|
|
# else
|
|
# define CORE_UTIL_EXPORT __declspec(dllimport)
|
|
# endif
|
|
# define CORE_UTIL_IGNORE_DEPRECATED
|
|
# define CORE_UTIL_RESTORE_WARNINGS
|
|
#else
|
|
# ifdef CORE_UTIL_IMPLEMENTATION
|
|
# define CORE_UTIL_EXPORT __attribute__((visibility("default")))
|
|
# else
|
|
# define CORE_UTIL_EXPORT
|
|
# endif
|
|
# ifdef __GNUC__
|
|
# define CORE_UTIL_IGNORE_DEPRECATED \
|
|
_Pragma("GCC diagnostic push") \
|
|
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
|
# define CORE_UTIL_RESTORE_WARNINGS _Pragma("GCC diagnostic pop")
|
|
# else
|
|
# define CORE_UTIL_IGNORE_DEPRECATED
|
|
# define CORE_UTIL_RESTORE_WARNINGS
|
|
# endif
|
|
#endif
|
|
|
|
#endif // WVCDM_UTIL_UTIL_COMMON_H_
|