Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: libhostname linkage adjustments followup
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/***************************************************************************** | ||
* _ _ ____ _ | ||
* Project ___| | | | _ \| | | ||
* / __| | | | |_) | | | ||
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
*/ | ||
|
||
#if (defined(WIN32) || defined(__SYMBIAN32__)) && !defined(CURL_STATICLIB) | ||
# if defined(BUILDING_LIBCURL) | ||
# define LIBHOSTNAME_EXTERN __declspec(dllexport) | ||
# else | ||
# define LIBHOSTNAME_EXTERN __declspec(dllimport) | ||
# endif | ||
#else | ||
# ifdef CURL_HIDDEN_SYMBOLS | ||
# define LIBHOSTNAME_EXTERN CURL_EXTERN_SYMBOL | ||
# else | ||
# define LIBHOSTNAME_EXTERN | ||
# endif | ||
#endif | ||
|
||
LIBHOSTNAME_EXTERN int gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen); | ||
|