diff options
Diffstat (limited to 'src/native/ogl/DrawingSurfaceObjectAWT.c')
-rw-r--r-- | src/native/ogl/DrawingSurfaceObjectAWT.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/native/ogl/DrawingSurfaceObjectAWT.c b/src/native/ogl/DrawingSurfaceObjectAWT.c index b728201..84f86bb 100644 --- a/src/native/ogl/DrawingSurfaceObjectAWT.c +++ b/src/native/ogl/DrawingSurfaceObjectAWT.c @@ -16,12 +16,16 @@ * of the Java 3D API. */ +#include <jni.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <jawt_md.h> +#include "javax_media_j3d_MasterControl.h" +#include "javax_media_j3d_DrawingSurfaceObjectAWT.h" + #ifdef DEBUG /* Uncomment the following for VERBOSE debug messages */ /* #define VERBOSE */ @@ -144,11 +148,11 @@ Java_javax_media_j3d_DrawingSurfaceObjectAWT_getDrawingSurfaceWindowIdAWT( #endif /* __sparc */ #endif /* SOLARIS */ -#ifdef __linux__ +#ifdef LINUX JAWT_X11DrawingSurfaceInfo *xds = (JAWT_X11DrawingSurfaceInfo*) dsi->platformInfo; window = (jint)xds->drawable; -#endif /* __linux__ */ +#endif /* LINUX */ /* * Don't free DrawingSurfaceInfo here, otherwise |