summaryrefslogtreecommitdiff
path: root/vcl/win/source/gdi/salogl.cxx
diff options
context:
space:
mode:
authorKai Ahrens <ka@openoffice.org>2001-02-02 14:18:28 +0000
committerKai Ahrens <ka@openoffice.org>2001-02-02 14:18:28 +0000
commitca65e922dd88bf70773023e26760f999b4fcfd28 (patch)
treef53ee8bb4e274ddddfef28e7bfea8b2bc31ca183 /vcl/win/source/gdi/salogl.cxx
parentfd46c9937e1467bea77e89a9519f90ff31ad2cf6 (diff)
#83240#: using explicit calling convention now
Diffstat (limited to 'vcl/win/source/gdi/salogl.cxx')
-rw-r--r--vcl/win/source/gdi/salogl.cxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/vcl/win/source/gdi/salogl.cxx b/vcl/win/source/gdi/salogl.cxx
index bdd5ccee00e8..61c7fc93d476 100644
--- a/vcl/win/source/gdi/salogl.cxx
+++ b/vcl/win/source/gdi/salogl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salogl.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:05:49 $
+ * last change: $Author: ka $ $Date: 2001-02-02 15:18:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,14 +72,22 @@
#include <salgdi.hxx>
#endif
+#ifdef WIN
+#define __OPENGL_CALL _far _pascal
+#elif defined WNT
+#define __OPENGL_CALL __stdcall
+#else
+#define __OPENGL_CALL
+#endif
+
// -------------------------------
// - Additional typedefs for init.
// -------------------------------
-typedef HGLRC ( *OGLFncCreateContext )( HDC hDC );
-typedef BOOL ( *OGLFncDeleteContext )( HGLRC hContext );
-typedef HGLRC ( *OGLFncGetCurrentContext )( VOID );
-typedef void ( *OGLFncMakeCurrent )( HDC hDC, HGLRC hContext );
+typedef HGLRC ( __OPENGL_CALL *OGLFncCreateContext )( HDC hDC );
+typedef BOOL ( __OPENGL_CALL *OGLFncDeleteContext )( HGLRC hContext );
+typedef HGLRC ( __OPENGL_CALL *OGLFncGetCurrentContext )( VOID );
+typedef void ( __OPENGL_CALL *OGLFncMakeCurrent )( HDC hDC, HGLRC hContext );
// ------------
// - Lib-Name -