Commit bc102dc1 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtk: mangle glew symbols

parent 3b1af23c
......@@ -4,6 +4,7 @@ set(sources
set(headers
include/GL/glew.h
include/GL/glxew.h
include/GL/vtk_glew_mangle.h
include/GL/wglew.h)
vtk_module_add_module(VTK::glew
......
......@@ -8,3 +8,4 @@ process.
* Ignore whitespace errors to pass VTK's commit checks.
* Integrate the CMake build with VTK's module system.
* Mangle all exported symbols to have a `vtkglew_` prefix.
......@@ -21,6 +21,8 @@
#error glATI.h included before glew.h
#endif
#include "vtk_glew_mangle.h"
#define __gl_h_
#define __gl2_h_
#define __GL_H__
......
#ifndef vtk_glew_mangle_h
#define vtk_glew_mangle_h
#define glewGetErrorString vtkglew_glewGetErrorString
#define glewGetExtension vtkglew_glewGetExtension
#define glewGetString vtkglew_glewGetString
#define glewInit vtkglew_glewInit
#define glewIsSupported vtkglew_glewIsSupported
#define glxewContextInit vtkglew_glxewContextInit
#define glxewGetExtension vtkglew_glxewGetExtension
#define glxewInit vtkglew_glxewInit
#define glxewIsSupported vtkglew_glxewIsSupported
#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