AWS SDK for C++  1.7.226
AWS SDK for C++
GameLift_EXPORTS.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
17 
18 #ifdef _MSC_VER
19  //disable windows complaining about max template size.
20  #pragma warning (disable : 4503)
21 #endif // _MSC_VER
22 
23 #if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
24  #ifdef _MSC_VER
25  #pragma warning(disable : 4251)
26  #endif // _MSC_VER
27 
28  #ifdef USE_IMPORT_EXPORT
29  #ifdef AWS_GAMELIFT_EXPORTS
30  #define AWS_GAMELIFT_API __declspec(dllexport)
31  #else
32  #define AWS_GAMELIFT_API __declspec(dllimport)
33  #endif /* AWS_GAMELIFT_EXPORTS */
34  #else
35  #define AWS_GAMELIFT_API
36  #endif // USE_IMPORT_EXPORT
37 #else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
38  #define AWS_GAMELIFT_API
39 #endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)