diff options
author | Damien Plisson <damien.plisson@yahoo.fr> | 2009-10-30 23:20:48 +0300 |
---|---|---|
committer | Damien Plisson <damien.plisson@yahoo.fr> | 2009-10-30 23:20:48 +0300 |
commit | 93173a6dd4eaf1955516e35335009494a92f300b (patch) | |
tree | 8179f8ad07c6bcf1dc276d3e89058f829dd7c742 /source/blender | |
parent | f03257cc1f68e6448b8c45e9053d894d275f44cb (diff) |
Mac / COCOA :
- fix 10.4 compile issues
- fix some scons issues & add WITH_BF_COLLADA = False in scons darwin_config.py to allow build waiting for complete Collada Mac implementation
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/imbuf/intern/imbuf_cocoa.m | 7 | ||||
-rw-r--r-- | source/blender/windowmanager/SConscript | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/imbuf_cocoa.m b/source/blender/imbuf/intern/imbuf_cocoa.m index e5bebf68f66..5ede7ee3e00 100644 --- a/source/blender/imbuf/intern/imbuf_cocoa.m +++ b/source/blender/imbuf/intern/imbuf_cocoa.m @@ -29,6 +29,7 @@ * */ +#include <stdint.h> #include <string.h> #import <Cocoa/Cocoa.h> @@ -65,7 +66,7 @@ struct ImBuf *imb_cocoaLoadImage(unsigned char *mem, int size, int flags) { struct ImBuf *ibuf = NULL; - uint32 width, height; + uint32_t width, height; uchar *rasterRGB = NULL; uchar *rasterRGBA = NULL; uchar *toIBuf = NULL; @@ -204,7 +205,7 @@ struct ImBuf *imb_cocoaLoadImage(unsigned char *mem, int size, int flags) short imb_cocoaSaveImage(struct ImBuf *ibuf, char *name, int flags) { - uint16 samplesperpixel, bitspersample; + uint16_t samplesperpixel, bitspersample; unsigned char *from = NULL, *to = NULL; unsigned short *to16 = NULL; float *fromf = NULL; @@ -224,7 +225,7 @@ short imb_cocoaSaveImage(struct ImBuf *ibuf, char *name, int flags) /* check for a valid number of bytes per pixel. Like the PNG writer, * the TIFF writer supports 1, 3 or 4 bytes per pixel, corresponding * to gray, RGB, RGBA respectively. */ - samplesperpixel = (uint16)((ibuf->depth + 7) >> 3); + samplesperpixel = (uint16_t)((ibuf->depth + 7) >> 3); switch (samplesperpixel) { case 4: /*RGBA type*/ hasAlpha = YES; diff --git a/source/blender/windowmanager/SConscript b/source/blender/windowmanager/SConscript index c01649485a5..2a86d42f590 100644 --- a/source/blender/windowmanager/SConscript +++ b/source/blender/windowmanager/SConscript @@ -29,4 +29,7 @@ if env['OURPLATFORM'] == 'linux2': if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'): incs += ' ' + env['BF_PTHREADS_INC'] +if env['WITH_GHOST_COCOA']: + sources.remove('intern/wm_apple.c') + env.BlenderLib ( 'bf_windowmanager', sources, Split(incs), defs, libtype=['core'], priority=[5] ) |