summaryrefslogtreecommitdiff
blob: f45d9cd78cf6762a081f049d5e6f07f8dca5fd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Index: src/vrml97/JS_VRMLClasses.h
===================================================================
--- src/vrml97/JS_VRMLClasses.h	(revision 13505)
+++ src/vrml97/JS_VRMLClasses.h	(revision 13506)
@@ -28,6 +28,7 @@
 #error this is a private header file
 #endif /* ! COIN_INTERNAL */
 
+#if defined(HAVE_VRML97) && defined(COIN_HAVE_JAVASCRIPT)
 /* ********************************************************************** */
 
 class SoJavaScriptEngine;
@@ -37,5 +38,6 @@
 void JS_addVRMLclasses(SoJavaScriptEngine * engine);
 
 /* ********************************************************************** */
+#endif // HAVE_VRML97 && COIN_HAVE_JAVASCRIPT
 
 #endif /* !COIN_JS_VRMLCLASSES_H */
Index: src/vrml97/JS_VRMLClasses.cpp
===================================================================
--- src/vrml97/JS_VRMLClasses.cpp	(revision 13505)
+++ src/vrml97/JS_VRMLClasses.cpp	(revision 13506)
@@ -2,7 +2,7 @@
 #include "config.h"
 #endif // HAVE_CONFIG_H
 
-#ifdef HAVE_VRML97
+#if defined(HAVE_VRML97) && defined(COIN_HAVE_JAVASCRIPT)
 
 /**************************************************************************\
  *
@@ -2097,4 +2097,4 @@
     MFVec3dHandler::jsval2field);
 }
 
-#endif // HAVE_VRML97
+#endif // HAVE_VRML97 && COIN_HAVE_JAVASCRIPT