Commit ff03bf53 authored by Martin Schultz's avatar Martin Schultz

* Dont use #warning with msvc, use pragma message instead

parent 5fb971a6
...@@ -12,7 +12,11 @@ namespace ACGL{ ...@@ -12,7 +12,11 @@ namespace ACGL{
namespace OpenGL{ namespace OpenGL{
typedef ACGL::OpenGL::ShaderCreator ShaderControlFile; typedef ACGL::OpenGL::ShaderCreator ShaderControlFile;
#ifdef _MSC_VER
#pragma message(__FILE__" : warning: ShaderControlFile is deprecated, use ShaderCreator instead (same interface)")
#else
#warning "ShaderControlFile is deprecated, use ShaderCreator instead (same interface)" #warning "ShaderControlFile is deprecated, use ShaderCreator instead (same interface)"
#endif
} }
} }
...@@ -12,7 +12,11 @@ namespace ACGL{ ...@@ -12,7 +12,11 @@ namespace ACGL{
namespace OpenGL{ namespace OpenGL{
typedef ACGL::OpenGL::ShaderProgramCreator ShaderProgramControlFiles; typedef ACGL::OpenGL::ShaderProgramCreator ShaderProgramControlFiles;
#ifdef _MSC_VER
#pragma message(__FILE__" : warning: ShaderProgramControlFiles is deprecated, use ShaderProgramCreator instead (same interface)")
#else
#warning "ShaderProgramControlFiles is deprecated, use ShaderProgramCreator instead (same interface)" #warning "ShaderProgramControlFiles is deprecated, use ShaderProgramCreator instead (same interface)"
#endif
} }
} }
...@@ -12,7 +12,11 @@ namespace ACGL{ ...@@ -12,7 +12,11 @@ namespace ACGL{
namespace OpenGL{ namespace OpenGL{
typedef ACGL::OpenGL::VertexArrayObjectCreator VertexArrayObjectControlFile; typedef ACGL::OpenGL::VertexArrayObjectCreator VertexArrayObjectControlFile;
#ifdef _MSC_VER
#pragma message(__FILE__" : warning: VertexArrayObjectControlFile is deprecated, use VertexArrayObjectCreator instead (same interface)")
#else
#warning "VertexArrayObjectControlFile is deprecated, use VertexArrayObjectCreator instead (same interface)" #warning "VertexArrayObjectControlFile is deprecated, use VertexArrayObjectCreator instead (same interface)"
#endif
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment