Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-06-08 22:55:49 +0400
committerTon Roosendaal <ton@blender.org>2005-06-08 22:55:49 +0400
commit205b6501a0ad8e792d2d7cc32dc3ba25b7613ec2 (patch)
treec82cd64d5849e161f738334606fc676d33a2ffa5
parentce68fddc0db812dd827ffd2d8bf90fb0badcb90e (diff)
(Accidentally sent previous commit without message... is same stuff)
gcc4 error fixes for compiling in OSX Tiger Also; make using python framework default in makefiles
-rw-r--r--intern/SoundSystem/openal/SND_OpenALDevice.cpp4
-rw-r--r--intern/bmfont/intern/BMF_BitmapFont.cpp2
-rw-r--r--intern/ghost/intern/GHOST_WindowCarbon.cpp10
-rw-r--r--source/blender/quicktime/quicktime_import.h1
-rw-r--r--source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp10
-rw-r--r--source/nan_definitions.mk2
6 files changed, 18 insertions, 11 deletions
diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp
index fdad75db767..2a320568e2a 100644
--- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp
+++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp
@@ -430,9 +430,9 @@ SND_WaveSlot* SND_OpenALDevice::LoadSample(const STR_String& name,
else
{
#ifdef __APPLE__
- alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate);
+ alutLoadWAVFile((ALbyte *)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate);
#else
- alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate, &loop);
+ alutLoadWAVFile((ALbyte *)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate, &loop);
#endif
/* put it in the buffer */
alBufferData(m_buffers[buffer], sampleformat, data, numberofsamples, samplerate);
diff --git a/intern/bmfont/intern/BMF_BitmapFont.cpp b/intern/bmfont/intern/BMF_BitmapFont.cpp
index 521cd67a325..6af8e9eaa2c 100644
--- a/intern/bmfont/intern/BMF_BitmapFont.cpp
+++ b/intern/bmfont/intern/BMF_BitmapFont.cpp
@@ -76,7 +76,7 @@ static int is_a_really_crappy_nvidia_card(void) {
/* Do you understand the implication? Do you? */
if (well_is_it==-1) {
- well_is_it= (strncmp(glGetString(GL_RENDERER), "NVIDIA GeForce 6800", 18) == 0);
+ well_is_it= (strncmp((char *)glGetString(GL_RENDERER), "NVIDIA GeForce 6800", 18) == 0);
}
return well_is_it;
}
diff --git a/intern/ghost/intern/GHOST_WindowCarbon.cpp b/intern/ghost/intern/GHOST_WindowCarbon.cpp
index ad19f08c950..bd271fd0c8d 100644
--- a/intern/ghost/intern/GHOST_WindowCarbon.cpp
+++ b/intern/ghost/intern/GHOST_WindowCarbon.cpp
@@ -115,8 +115,14 @@ GHOST_WindowCarbon::GHOST_WindowCarbon(
//fprintf(stderr," main screen top %i left %i height %i width %i\n", top, left, height, width);
- if (state >= 8 ) {
- state = state - 8;
+ if (state >= GHOST_kWindowState8Normal ) {
+ if(state == GHOST_kWindowState8Normal) state= GHOST_kWindowStateNormal;
+ else if(state == GHOST_kWindowState8Maximized) state= GHOST_kWindowStateMaximized;
+ else if(state == GHOST_kWindowState8Minimized) state= GHOST_kWindowStateMinimized;
+ else if(state == GHOST_kWindowState8FullScreen) state= GHOST_kWindowStateFullScreen;
+
+ // state = state - 8; this was the simple version of above code, doesnt work in gcc 4.0
+
setMac_windowState(1);
} else
setMac_windowState(0);
diff --git a/source/blender/quicktime/quicktime_import.h b/source/blender/quicktime/quicktime_import.h
index 39434a92a85..f8fe178a04f 100644
--- a/source/blender/quicktime/quicktime_import.h
+++ b/source/blender/quicktime/quicktime_import.h
@@ -49,6 +49,7 @@
#ifdef _WIN32
#include <Movies.h>
#elif defined(__APPLE__)
+#import <Carbon/Carbon.h>
#include <QuickTime/Movies.h>
#endif
#endif
diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp
index cd7fb7f2c45..cd37fbec502 100644
--- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp
+++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp
@@ -110,32 +110,32 @@ static OSStatus bglInitEntryPoints (void)
err = FindFolder (kSystemDomain, kFrameworksFolderType, false,
&fileRefParam.ioVRefNum, &fileRefParam.ioDirID);
if (noErr != err) {
- DebugStr ("\pCould not find frameworks folder");
+ DebugStr ((unsigned char *)"\pCould not find frameworks folder");
return err;
}
err = PBMakeFSRefSync (&fileRefParam); // make FSRef for folder
if (noErr != err) {
- DebugStr ("\pCould make FSref to frameworks folder");
+ DebugStr ((unsigned char *)"\pCould make FSref to frameworks folder");
return err;
}
// create URL to folder
bundleURLOpenGL = CFURLCreateFromFSRef (kCFAllocatorDefault,
&fileRef);
if (!bundleURLOpenGL) {
- DebugStr ("\pCould create OpenGL Framework bundle URL");
+ DebugStr ((unsigned char *)"\pCould create OpenGL Framework bundle URL");
return paramErr;
}
// create ref to GL's bundle
gBundleRefOpenGL = CFBundleCreate (kCFAllocatorDefault,
bundleURLOpenGL);
if (!gBundleRefOpenGL) {
- DebugStr ("\pCould not create OpenGL Framework bundle");
+ DebugStr ((unsigned char *)"\pCould not create OpenGL Framework bundle");
return paramErr;
}
CFRelease (bundleURLOpenGL); // release created bundle
// if the code was successfully loaded, look for our function.
if (!CFBundleLoadExecutable (gBundleRefOpenGL)) {
- DebugStr ("\pCould not load MachO executable");
+ DebugStr ((unsigned char *)"\pCould not load MachO executable");
return paramErr;
}
return err;
diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk
index 83eb5c27abc..a01aa0c77e3 100644
--- a/source/nan_definitions.mk
+++ b/source/nan_definitions.mk
@@ -139,7 +139,7 @@ endif
export ID = $(shell whoami)
export HOST = $(shell hostname -s)
-# export PY_FRAMEWORK = 1
+ export PY_FRAMEWORK = 1
ifdef PY_FRAMEWORK
export NAN_PYTHON ?= /System/Library/Frameworks/Python.framework/Versions/2.3