Skip to content

Commit

Permalink
fix bug:link failed in mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
FunriLy authored and huiguangjun committed Jul 23, 2019
1 parent ca8bf8a commit fc8c2f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ if (CMAKE_CROSSCOMPILING)
message(FATAL_ERROR "Do not support target platform")
endif()
else()
if(CMAKE_HOST_UNIX)
if(CMAKE_HOST_APPLE)
set(PLATFORM_APPLE 1)
set(TARGET_OS "APPLE")
elseif(CMAKE_HOST_UNIX)
set(PLATFORM_LINUX 1)
set(TARGET_OS "LINUX")
elseif(CMAKE_HOST_WIN32)
set(PLATFORM_WINDOWS 1)
set(TARGET_OS "WINDOWS")
elseif(CMAKE_HOST_APPLE)
set(PLATFORM_APPLE 1)
set(TARGET_OS "APPLE")
else()
message(FATAL_ERROR "Do not support unknown host OS")
endif()
Expand Down Expand Up @@ -134,4 +134,4 @@ endif()
if(BUILD_TESTS)
add_subdirectory(test)
add_subdirectory(ptest)
endif()
endif()
2 changes: 1 addition & 1 deletion sdk/include/alibabacloud/oss/Global.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# endif // _MSC_VER
# define ALIBABACLOUD_DECL_EXPORT __declspec(dllexport)
# define ALIBABACLOUD_DECL_IMPORT __declspec(dllimport)
#elif defined(__linux__)
#elif __GNUC__ >= 4
# define ALIBABACLOUD_DECL_EXPORT __attribute__((visibility("default")))
# define ALIBABACLOUD_DECL_IMPORT __attribute__((visibility("default")))
#endif
Expand Down

0 comments on commit fc8c2f8

Please sign in to comment.