summaryrefslogtreecommitdiff
path: root/graphics/gtimelapse/files/patch-src__gtimelapse.cpp
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-12-20 18:34:20 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-12-20 18:34:20 +0000
commit3e9ecc90aa5be5126097afb8f9a17474a34b859f (patch)
treea55cd3f67535945c29c612f755d7c4931d7352f6 /graphics/gtimelapse/files/patch-src__gtimelapse.cpp
parentdevel/py-lockfile: allow staging and minor fixes (diff)
- Fix build with clang
- Add DESKTOP_ENTRIES - Port supports staging PR: ports/184874 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes: svn path=/head/; revision=337065
Diffstat (limited to 'graphics/gtimelapse/files/patch-src__gtimelapse.cpp')
-rw-r--r--graphics/gtimelapse/files/patch-src__gtimelapse.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/gtimelapse/files/patch-src__gtimelapse.cpp b/graphics/gtimelapse/files/patch-src__gtimelapse.cpp
new file mode 100644
index 000000000000..9800f69015b9
--- /dev/null
+++ b/graphics/gtimelapse/files/patch-src__gtimelapse.cpp
@@ -0,0 +1,25 @@
+--- src/gtimelapse.cpp.orig
++++ src/gtimelapse.cpp
+@@ -155,7 +155,11 @@
+ //cout << "type: RADIO" << endl;
+ //cout << "current: " << current << endl;
+
++#ifdef __clang__
++ wxString *choices = new wxString[cnt];
++#else
+ wxString choices[cnt];
++#endif
+
+ for ( i=0; i<cnt; i++) {
+ const char *choice;
+@@ -165,6 +169,10 @@
+ choices[i] = mystring;
+ }
+
++#ifdef __clang__
++ delete [] choices;
++#endif
++
+ wxString title(label, wxConvUTF8);
+ wxString default_choice(current, wxConvUTF8);
+ wxString choice_label(uselabel, wxConvUTF8);