diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-18 20:20:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-18 20:20:04 +0300 |
commit | 0a703124e21b7e0c2dd0ebb0a1fa8eb92c21a5dc (patch) | |
tree | fe0d3efae5d032df3301a9cf022f21322bd6db60 /source | |
parent | 41e4d7e4e60866704dd307fb2bfce70c715b99f8 (diff) |
moved LARGEFILE defines to BLI_storage.h
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/BLI_storage.h | 5 | ||||
-rw-r--r-- | source/blender/blenlib/intern/storage.c | 5 | ||||
-rw-r--r-- | source/blender/src/buttons_object.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/BLI_storage.h b/source/blender/blenlib/intern/BLI_storage.h index 5e9c377c410..9cbdfa327cd 100644 --- a/source/blender/blenlib/intern/BLI_storage.h +++ b/source/blender/blenlib/intern/BLI_storage.h @@ -31,6 +31,11 @@ #ifndef BLI_STORAGE_H #define BLI_STORAGE_H +#ifndef WIN32 +#define _LARGEFILE_SOURCE 1 +#define _FILE_OFFSET_BITS 64 +#endif + #include "BLI_storage_types.h" void BLI_adddirstrings(void); diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index 6ab44440feb..9d70d85939e 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -32,11 +32,6 @@ * Some really low-level file thingies. */ -#ifndef WIN32 -#define _LARGEFILE_SOURCE 1 -#define _FILE_OFFSET_BITS 64 -#endif - #include <sys/types.h> #include <stdio.h> #include <stdlib.h> diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index 5952dea3a2b..2adf3209b5b 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -3412,7 +3412,7 @@ static void object_panel_fields(Object *ob) uiDefButF(block, NUM, B_FIELD_CHANGE, "MaxDist: ", 50,80,100,20, &pd->maxdist, 0, 1000.0, 10, 0, "Maximum distance for the field to work"); } else { - uiDefButF(block, NUM, B_FIELD_CHANGE, "Strength: ", 10,140,140,20, &pd->f_strength, -1000, 1000, 10, 0, "Strength of force field"); + uiDefButF(block, NUM, B_FIELD_CHANGE, "Strength: ", 10,140,140,20, &pd->f_strength, -1000, 1000, 10, 3, "Strength of force field"); if(pd->forcefield == PFIELD_TEXTURE){ uiDefIDPoinBut(block, field_testTexture, ID_TE, B_FIELD_CHANGE, "Texture: ", 10, 120, 140, 20, &pd->tex, "Texture to use as force"); |