Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
ProtoBufClasses.hpp
Go to the documentation of this file.
1/*
2Copyright (C) 2016,2017,2021,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
23#ifndef AEONGAMES_PROTOBUFCLASSES_H
24#define AEONGAMES_PROTOBUFCLASSES_H
25#ifdef _WIN32
26#ifndef DLL_PROTOBUF
27#ifdef ProtoBufClasses_EXPORTS
29#define DLL_PROTOBUF __declspec( dllexport )
30#else
31#if defined(__MINGW32__) || defined(__MINGW64__)
32#define DLL_PROTOBUF
33#else
34#define DLL_PROTOBUF __declspec( dllimport )
35#endif
36#endif
37#endif
38#elif defined(__unix__) || defined(__APPLE__)
39#ifndef DLL_PROTOBUF
40#define DLL_PROTOBUF __attribute__((visibility("default")))
41#endif
42#endif
43#endif