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:
authorDaniel Dunbar <daniel@zuster.org>2005-04-02 19:36:57 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-04-02 19:36:57 +0400
commit24c9f650565e6a016cca9d45c7daee94dfcb7130 (patch)
tree89becedccd6ed77790f6c5c5e35280d9a4e560b4 /source/blender/python/api2_2x/gen_utils.c
parentbdb86d7c6765724d297e7aa97dec4c0cc7d2bae9 (diff)
- got tired of str[n]casecmp not declared warnings
- added BLI_str[n]casecmp, use instead of regular versions - rewrote BLI_str[n]casecmp to not be stupid
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.c')
-rw-r--r--source/blender/python/api2_2x/gen_utils.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.c b/source/blender/python/api2_2x/gen_utils.c
index b8e8f92b83e..e23f652641b 100644
--- a/source/blender/python/api2_2x/gen_utils.c
+++ b/source/blender/python/api2_2x/gen_utils.c
@@ -30,13 +30,9 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
-#if defined(__WIN32__) || defined(WIN32) || defined(_WIN32)
- #include <string.h>
-#else
- #include <strings.h> /*for strcasecmp */
-#endif
#include <DNA_text_types.h>
#include <MEM_guardedalloc.h>
+#include <BLI_blenlib.h>
#include "gen_utils.h"
#include "constant.h"
@@ -234,7 +230,7 @@ int EXPP_map_case_getIntVal( const EXPP_map_pair * map, const char *sval,
int *ival )
{
while( map->sval ) {
- if( !strcasecmp( sval, map->sval ) ) {
+ if( !BLI_strcasecmp( sval, map->sval ) ) {
*ival = map->ival;
return 1;
}