From: dbv Date: Fri, 23 Mar 2012 11:11:14 +0000 (+0400) Subject: 0022752: Fix compilation on Unix with FreeImage and GL2PS support X-Git-Tag: V6_5_3_beta1~11 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=498ce5771b89073a248e65d7c6a0efe2f7fb610e;p=occt-copy.git 0022752: Fix compilation on Unix with FreeImage and GL2PS support Added missed includes config.h --- diff --git a/src/Image/Image_PixMap.cxx b/src/Image/Image_PixMap.cxx index c211b73216..a0927fd422 100644 --- a/src/Image/Image_PixMap.cxx +++ b/src/Image/Image_PixMap.cxx @@ -17,6 +17,9 @@ // purpose or non-infringement. Please see the License for the specific terms // and conditions governing the rights and limitations under the License. +#ifdef HAVE_CONFIG_H +# include +#endif #ifdef HAVE_FREEIMAGE #include diff --git a/src/OpenGl/OpenGl_Display_1.cxx b/src/OpenGl/OpenGl_Display_1.cxx index 208fe4df59..52e2bee420 100644 --- a/src/OpenGl/OpenGl_Display_1.cxx +++ b/src/OpenGl/OpenGl_Display_1.cxx @@ -28,6 +28,10 @@ #include #include +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef HAVE_GL2PS #include #endif diff --git a/src/OpenGl/OpenGl_Display_2.cxx b/src/OpenGl/OpenGl_Display_2.cxx index 40ca648bb5..4bc0f370fb 100644 --- a/src/OpenGl/OpenGl_Display_2.cxx +++ b/src/OpenGl/OpenGl_Display_2.cxx @@ -22,6 +22,10 @@ #include +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef HAVE_GL2PS #include #endif diff --git a/src/OpenGl/OpenGl_GraphicDriver_Export.cxx b/src/OpenGl/OpenGl_GraphicDriver_Export.cxx index b62dc9ab48..fbcfa9887a 100755 --- a/src/OpenGl/OpenGl_GraphicDriver_Export.cxx +++ b/src/OpenGl/OpenGl_GraphicDriver_Export.cxx @@ -22,6 +22,10 @@ #include #include +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef HAVE_GL2PS #include #endif diff --git a/src/OpenGl/OpenGl_Workspace_2.cxx b/src/OpenGl/OpenGl_Workspace_2.cxx index cf786a5494..c3ec00fdb9 100644 --- a/src/OpenGl/OpenGl_Workspace_2.cxx +++ b/src/OpenGl/OpenGl_Workspace_2.cxx @@ -24,6 +24,10 @@ #include #include +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef HAVE_FREEIMAGE #include #include diff --git a/src/OpenGl/OpenGl_Workspace_3.cxx b/src/OpenGl/OpenGl_Workspace_3.cxx index 74d2827f3e..be9007e87d 100644 --- a/src/OpenGl/OpenGl_Workspace_3.cxx +++ b/src/OpenGl/OpenGl_Workspace_3.cxx @@ -27,6 +27,10 @@ #include #include +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef HAVE_GL2PS #include #endif diff --git a/src/OpenGl/OpenGl_Workspace_5.cxx b/src/OpenGl/OpenGl_Workspace_5.cxx index 33ab16b82c..eb42adccca 100644 --- a/src/OpenGl/OpenGl_Workspace_5.cxx +++ b/src/OpenGl/OpenGl_Workspace_5.cxx @@ -27,6 +27,10 @@ #include #include +#ifdef HAVE_CONFIG_H +# include +#endif + /* OCC22218 NOTE: project dependency on gl2ps is specified by macro */ #ifdef HAVE_GL2PS #include