warning/portability fixes.

This commit is contained in:
2010-10-30 17:16:37 +00:00
parent c69f2eaca9
commit 001259ccb6
5 changed files with 33 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ struct Brush;
struct ImBuf;
struct Scene;
struct wmOperator;
enum CurveMappingPreset;
// enum CurveMappingPreset;
/* datablock functions */
struct Brush *add_brush(const char *name);

View File

@@ -279,8 +279,11 @@ behaviour, though it may not be the best in practice.
/*little macro so inline keyword works*/
#if defined(_MSC_VER)
#define BM_INLINE static __forceinline
#else
#elif defined(__GNUC__)
#define BM_INLINE static inline __attribute((always_inline))
#else
#warning "MSC/GNUC defines not found, inline non-functional"
#define BM_INLINE static
#endif
#define BMEMSET(mem, val, size) {unsigned int _i; char *_c = (char*) mem; for (_i=0; _i<size; _i++) *_c++ = val;}