From 1d52341e6090406ba495c2ebde5f8b9751198852 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 20 Nov 2005 13:47:45 +0000 Subject: [PATCH] OpenAL: Made alcGetCurrentContext static in org_lwjgl_openal_ALC.c --- src/native/common/extal.h | 3 --- src/native/common/org_lwjgl_openal_ALC.c | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/native/common/extal.h b/src/native/common/extal.h index 88906887..185d5105 100644 --- a/src/native/common/extal.h +++ b/src/native/common/extal.h @@ -165,9 +165,6 @@ void DeInitializeOpenAL(); //extern alGetProcAddressPROC alGetProcAddress; -typedef ALCcontext* (ALCAPIENTRY *alcGetCurrentContextPROC)(ALCvoid); -extern alcGetCurrentContextPROC alcGetCurrentContext; - #ifdef __cplusplus } #endif diff --git a/src/native/common/org_lwjgl_openal_ALC.c b/src/native/common/org_lwjgl_openal_ALC.c index 0f6b011e..29b3329f 100644 --- a/src/native/common/org_lwjgl_openal_ALC.c +++ b/src/native/common/org_lwjgl_openal_ALC.c @@ -57,8 +57,9 @@ typedef ALCenum (ALCAPIENTRY *alcGetErrorPROC)(ALCdevice *device); typedef ALCboolean (ALCAPIENTRY *alcIsExtensionPresentPROC)(ALCdevice *device,ALCubyte *extName); //typedef ALCvoid* (ALCAPIENTRY *alcGetProcAddressPROC)(ALCdevice *device,ALCubyte *funcName); typedef ALCenum (ALCAPIENTRY *alcGetEnumValuePROC)(ALCdevice *device,ALCubyte *enumName); +typedef ALCcontext* (ALCAPIENTRY *alcGetCurrentContextPROC)(ALCvoid); -alcGetCurrentContextPROC alcGetCurrentContext = NULL; +static alcGetCurrentContextPROC alcGetCurrentContext = NULL; static alcGetStringPROC alcGetString; static alcGetIntegervPROC alcGetIntegerv; static alcOpenDevicePROC alcOpenDevice;