Skip to content

Commit

Permalink
Remove deprecated MAC_OS definition
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibel committed Nov 26, 2014
1 parent fe57f93 commit aced1ad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmake/PlatformMacOS.cmake
Expand Up @@ -25,7 +25,7 @@ set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -g -Wall")


set(MACOS_COMPILE_DEFS MAC_OS)
set(MACOS_COMPILE_DEFS)
set(DEFAULT_COMPILE_DEFS_DEBUG ${MACOS_COMPILE_DEFS} _DEBUG) # Debug build
set(DEFAULT_COMPILE_DEFS_RELEASE ${MACOS_COMPILE_DEFS} NDEBUG) # Release build

Expand Down
4 changes: 2 additions & 2 deletions source/examples/common/Context.cpp
Expand Up @@ -64,7 +64,7 @@ glbinding::Version Context::maxSupportedVersion()

glfwWindowHint(GLFW_VISIBLE, false);

#ifdef MAC_OS
#ifdef __APPLE__
/*
* Using OS X the following hints must be set for proper context initialization
* (cf. http://stackoverflow.com/questions/19969937/getting-a-glsl-330-context-on-osx-10-9-mavericks)
Expand Down Expand Up @@ -114,7 +114,7 @@ GLFWwindow * Context::create(
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, version.m_major);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, version.m_minor);

#ifdef MAC_OS
#ifdef __APPLE__

glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, true);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
Expand Down
2 changes: 1 addition & 1 deletion source/examples/common/ContextFormat.cpp
Expand Up @@ -48,7 +48,7 @@ glbinding::Version ContextFormat::validateVersion(
const glbinding::Version & requestedVersion
, const glbinding::Version & supportedMaximumVersion)
{
#ifdef MAC_OS
#ifdef __APPLE__
return glbinding::Version(3, 2);
#endif

Expand Down
2 changes: 1 addition & 1 deletion source/examples/common/WindowEventHandler.cpp
Expand Up @@ -107,7 +107,7 @@ void WindowEventHandler::initialize(Window &)
init();
DebugMessage::enable();

#ifdef MAC_OS
#ifdef __APPLE__
Shader::clearGlobalReplacements();
Shader::globalReplace("#version 130", "#version 150");
Shader::globalReplace("#version 140", "#version 150");
Expand Down
4 changes: 2 additions & 2 deletions source/examples/qt-example/main.cpp
Expand Up @@ -81,7 +81,7 @@ class Window : public WindowQt, AbstractCoordinateProvider
<< "OpenGL Vendor: " << glbinding::ContextInfo::vendor() << std::endl
<< "OpenGL Renderer: " << glbinding::ContextInfo::renderer() << std::endl << std::endl;

#ifdef MAC_OS
#ifdef __APPLE__
Shader::clearGlobalReplacements();
Shader::globalReplace("#version 130", "#version 150");
Shader::globalReplace("#version 140", "#version 150");
Expand Down Expand Up @@ -262,7 +262,7 @@ int main(int argc, char * argv[])
QApplication app(argc, argv);

QSurfaceFormat format;
#ifdef MAC_OS
#ifdef __APPLE__
format.setVersion(3, 2);
format.setProfile(QSurfaceFormat::CoreProfile);
#else
Expand Down

0 comments on commit aced1ad

Please sign in to comment.