From 8df5de525c06f55a14e2390f24df2de91643af2a Mon Sep 17 00:00:00 2001 From: Roel Spruit Date: Wed, 14 Jan 2004 21:48:56 +0000 Subject: [PATCH] added python script files to MSVC 6.0 projectfiles and changed snprintf to PyOS_snprintf --- projectfiles/blender/BPY_python/BPY_python.dsp | 8 ++++++++ source/blender/python/BPY_menus.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/projectfiles/blender/BPY_python/BPY_python.dsp b/projectfiles/blender/BPY_python/BPY_python.dsp index c8248f7dad5..0cf73bb3566 100644 --- a/projectfiles/blender/BPY_python/BPY_python.dsp +++ b/projectfiles/blender/BPY_python/BPY_python.dsp @@ -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 diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c index b5d9610d3d8..14d763f069f 100644 --- a/source/blender/python/BPY_menus.c +++ b/source/blender/python/BPY_menus.c @@ -42,6 +42,7 @@ #include #include #include +#include #ifndef WIN32 #include @@ -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);