Changes for Mac OSX build, sent in by Bob Kuehne

This commit is contained in:
Robert Osfield
2002-04-24 20:04:34 +00:00
parent b2e6279178
commit 8f3debaf9b
3 changed files with 10 additions and 6 deletions

View File

@@ -62,10 +62,12 @@ void* osg::getGLExtensionFuncPtr(const char *funcName)
{
#if defined(WIN32)
return wglGetProcAddress(funcName);
#elif defined(macintosh)
return NULL;
#else
#if defined( __DARWIN_OSX__ )
static void *lib = dlopen("libGL.dylib", RTLD_LAZY);
#else // all other unixes
static void *lib = dlopen("libGL.so", RTLD_LAZY);
#endif
if (lib)
return dlsym(lib, funcName);
else

View File

@@ -1,9 +1,8 @@
TOPDIR = ../../..
include $(TOPDIR)/Make/makedefs
CXXFILES =\
ReaderWriterQT.cpp\
QTtexture.cpp\
CXXFILES = ReaderWriterQT.cpp
CFILES = QTtexture.c
LIBS += $(QUICKTIME) $(OSG_LIBS) $(OTHER_LIBS)