diff --git a/src/core/host.c b/src/core/host.c index ad468be..0c66521 100644 --- a/src/core/host.c +++ b/src/core/host.c @@ -334,7 +334,7 @@ LIB3270_EXPORT const char * lib3270_get_default_host(const H3270 GNUC_UNUSED(*hS #endif // _WIN32 #ifdef LIB3270_DEFAULT_HOST - return LIB3270_DEFAULT_HOST; + return LIB3270_STRINGIZE_VALUE_OF(LIB3270_DEFAULT_HOST); #else return getenv("LIB3270_DEFAULT_HOST"); #endif // LIB3270_DEFAULT_HOST diff --git a/src/core/properties/string.c b/src/core/properties/string.c index 44665ec..d07e6d1 100644 --- a/src/core/properties/string.c +++ b/src/core/properties/string.c @@ -66,7 +66,7 @@ LIB3270_EXPORT const LIB3270_STRING_PROPERTY * lib3270_get_string_properties_lis { .name = "url", // Property name. #ifdef LIB3270_DEFAULT_HOST - .default_value = LIB3270_DEFAULT_HOST, // Default value. + .default_value = LIB3270_STRINGIZE_VALUE_OF(LIB3270_DEFAULT_HOST), // Default value. #endif // LIB3270_DEFAULT_HOST .group = LIB3270_ACTION_GROUP_OFFLINE, // Property group. .icon = "network-server", // Property icon. -- libgit2 0.21.2