From eea45f95eb967c503f1fc1621f05e01fa5e88555 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Sun, 22 Dec 2002 21:44:18 +0000 Subject: [PATCH] fix: using JNI_TRUE/FALSE --- src/native/common/extal.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/native/common/extal.c b/src/native/common/extal.c index f44159bc..a79c3112 100644 --- a/src/native/common/extal.c +++ b/src/native/common/extal.c @@ -31,6 +31,7 @@ */ #include +#include #include "extal.h" #ifndef _WIN32 @@ -185,7 +186,7 @@ void UnLoadOpenAL() { */ int InitializeOpenAL() { if(handleOAL != 0) { - return 1; + return JNI_TRUE; } //load our library @@ -193,25 +194,25 @@ int InitializeOpenAL() { // if we couldn't load the library, get out if(handleOAL == 0) { - return 0; + return JNI_FALSE; } //load basic OpenAL functions if(!LoadAL()) { - return 0; + return JNI_FALSE; } //load OpenAL context functions if(!LoadALC()) { - return 0; + return JNI_FALSE; } //load OpenAL extensions if(!LoadALExtensions()) { - return 0; + return JNI_FALSE; } - return 1; + return JNI_TRUE; } /** @@ -387,5 +388,5 @@ int LoadALC() { * @return true if all methods were loaded, false if one of the methods could not be loaded */ int LoadALExtensions() { - return 1; + return JNI_TRUE; }