[x3d-public] patch to start getting C++ SAI working on linux

John Carlson yottzumm at gmail.com
Sat Aug 7 03:24:04 PDT 2021


/c/x3d-code/www.web3d.org/x3d/languages/cpp$ svn diff
Index: X3DLib/Abstracts.h
===================================================================
--- X3DLib/Abstracts.h  (revision 32348)
+++ X3DLib/Abstracts.h  (working copy)
@@ -1,10 +1,12 @@
  #ifndef _Abstracts_H_
  #define _Abstracts_H_

-#include <gl\gl.h>                     // OpenGL extensions
-#include <gl\glu.h>
+#include <GL/gl.h>                     // OpenGL extensions
+#include <GL/glu.h>
  #include <math.h>
+#ifdef WIN32
  #include <afxtempl.h>
+#endif
  #include <stdint.h>

  class CX3DMetadataObject;
@@ -5553,4 +5555,4 @@
         CURLUnavailableException(CString);
  };

-#endif // _Abstracts_H_
\ No newline at end of file
+#endif // _Abstracts_H_
Index: X3DLib/X3DLib.h
===================================================================
--- X3DLib/X3DLib.h     (revision 32348)
+++ X3DLib/X3DLib.h     (working copy)
@@ -6,8 +6,8 @@
  #define _X3DLib_H_


-#include <gl\gl.h>                     // OpenGL extensions
-#include <gl\glu.h>
+#include <GL/gl.h>                     // OpenGL extensions
+#include <GL/glu.h>
  //#include <math.h>
  //#include <afxtempl.h>
  //#include <stdint.h>
Index: X3DLib/XML_PARSER.h
===================================================================
--- X3DLib/XML_PARSER.h (revision 32348)
+++ X3DLib/XML_PARSER.h (working copy)
@@ -8,11 +8,13 @@

  // -- CArray STL --
  //
+#ifdef WIN32
  #include <afxtempl.h>

  // -- Load MSXML library --
  //
  #import <msxml6.dll>
+#endif
  using namespace MSXML2;

  // typedef VOID (CALLBACK* TIMERPROC)(HWND, UINT, UINT, DWORD);




More information about the x3d-public mailing list