Skip to content

Commit

Permalink
GH #59: Poco::Environment::osDisplayName()
Browse files Browse the repository at this point in the history
GH #59: Poco::Environment::osDisplayName() not recognized Windows
8/Server 2012
  • Loading branch information
aleks-f committed Mar 24, 2013
1 parent 22b658a commit 4668c13
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -34,6 +34,7 @@ Release 1.5.2 (2013-03-??)
- fixed GH #131: no timezone global var on OpenBSD
- fixed GH #102: Some subprojects don't have x64 solutions for VS 2010
- added GH #75: Poco::Uri addQueryParameter method
- Poco::Environment::osDisplayName() now recognized Windows 8/Server 2012

Release 1.5.1 (2013-01-11)
==========================
Expand Down
2 changes: 1 addition & 1 deletion Foundation/include/Poco/Environment.h
Expand Up @@ -81,7 +81,7 @@ class Foundation_API Environment
/// Currently this is only implemented for
/// Windows. There it will return names like
/// "Windows XP" or "Windows 7/Server 2008 SP2".
/// On other platform, returns the same as
/// On other platforms, returns the same as
/// osName().

static std::string osVersion();
Expand Down
4 changes: 3 additions & 1 deletion Foundation/src/Environment_WIN32.cpp
Expand Up @@ -107,7 +107,9 @@ std::string EnvironmentImpl::osDisplayNameImpl()
case 0:
return "Windows Vista/Server 2008";
case 1:
return "Windows 7/Server 2008 SP2";
return "Windows 7/Server 2008 R2";
case 2:
return "Windows 8/Server 2012";
default:
return "Unknown";
}
Expand Down
4 changes: 3 additions & 1 deletion Foundation/src/Environment_WIN32U.cpp
Expand Up @@ -117,7 +117,9 @@ std::string EnvironmentImpl::osDisplayNameImpl()
case 0:
return "Windows Vista/Server 2008";
case 1:
return "Windows 7/Server 2008 SP2";
return "Windows 7/Server 2008 R2";
case 2:
return "Windows 8/Server 2012";
default:
return "Unknown";
}
Expand Down
5 changes: 4 additions & 1 deletion build/config/Darwin-clang
Expand Up @@ -20,6 +20,9 @@ POCO_TARGET_OSARCH ?= x86_64
POCO_HOST_OSARCH := $(POCO_TARGET_OSARCH)
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)

ifeq ($(POCO_TARGET_OSARCH),i386)
RORELOCS = -read_only_relocs suppress
endif

#
# Tools
Expand All @@ -30,7 +33,7 @@ LINK = $(CXX) -bind_at_load
LIB = libtool -static -o
RANLIB = ranlib
SHLIB = $(CXX) -dynamiclib -o $@
DYLIB = $(CXX) -dynamic -bundle -read_only_relocs suppress -Wl,-bind_at_load -o $@
DYLIB = $(CXX) -dynamic -bundle $(RORELOCS) suppress -Wl,-bind_at_load -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
STRIP =
DEP = $(POCO_BASE)/build/script/makedepend.clang
Expand Down

0 comments on commit 4668c13

Please sign in to comment.