diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-03-13 21:34:48 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-03-13 21:34:48 +0000 |
commit | e1360a123a108d13f4c0524342ff2d0f391f88b7 (patch) | |
tree | be16f45c332d9dcfbefdcbd8994997240dc13c5e /packages | |
parent | 60a9eed8cf766f3e83103d868a72123b19600e79 (diff) |
changed to use sprintf since asprintf doesn't exist on Windows
svn path=/trunk/; revision=4701
Diffstat (limited to 'packages')
-rw-r--r-- | packages/patches/complete_version_defines-0.39.2.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/patches/complete_version_defines-0.39.2.patch b/packages/patches/complete_version_defines-0.39.2.patch index 9fd51d32..9ca16f52 100644 --- a/packages/patches/complete_version_defines-0.39.2.patch +++ b/packages/patches/complete_version_defines-0.39.2.patch @@ -9,7 +9,7 @@ diff -u -w -r1.20 s_main.c * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ --char pd_version[] = "Pd version 0.39-2\n"; +-char pd_version[] = "Pd version 0.39-2\n" -char pd_compiletime[] = __TIME__; -char pd_compiledate[] = __DATE__; - @@ -20,7 +20,7 @@ diff -u -w -r1.20 s_main.c #include <winbase.h> #endif -+char *pd_version; ++char pd_version[256]; +char pd_compiletime[] = __TIME__; +char pd_compiledate[] = __DATE__; + @@ -32,7 +32,7 @@ diff -u -w -r1.20 s_main.c return (1); sys_afterargparse(); /* post-argparse settings */ + /* build version string from defines in m_pd.h */ -+ asprintf(&pd_version, "Pd version %d.%d-%d%s\n",PD_MAJOR_VERSION, ++ sprintf(pd_version, "Pd version %d.%d-%d%s\n",PD_MAJOR_VERSION, + PD_MINOR_VERSION,PD_BUGFIX_VERSION,PD_TEST_VERSION); if (sys_verbose || sys_version) fprintf(stderr, "%scompiled %s %s\n", pd_version, pd_compiletime, pd_compiledate); |