forked from bartvdbraak/blender
added python script files to MSVC 6.0 projectfiles and changed snprintf to PyOS_snprintf
This commit is contained in:
parent
0d9d16e6e9
commit
8df5de525c
@ -111,6 +111,10 @@ SOURCE=..\..\..\source\blender\python\BPY_interface.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\source\blender\python\BPY_menus.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\source\blender\python\api2_2x\Build.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
@ -263,6 +267,10 @@ SOURCE=..\..\..\source\blender\python\BPY_extern.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\source\blender\python\BPY_menus.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\source\blender\python\api2_2x\bpy_types.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <Python.h>
|
||||
|
||||
#ifndef WIN32
|
||||
#include <dirent.h>
|
||||
@ -103,7 +104,7 @@ char *BPyMenu_CreatePupmenuStr(BPyMenu *pym, short menugroup)
|
||||
|
||||
str[0] = '\0';
|
||||
|
||||
snprintf(str2, sizeof(str2), "%s: %s%%t",
|
||||
PyOS_snprintf(str2, sizeof(str2), "%s: %s%%t",
|
||||
BPyMenu_group_itoa(menugroup), pym->name);
|
||||
strcat(str, str2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user