freebsd-ports/graphics/gtimelapse/files/patch-src__gtimelapse.cpp
Pawel Pekala 3e9ecc90aa - Fix build with clang
- Add DESKTOP_ENTRIES
- Port supports staging

PR:		ports/184874
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-20 18:34:20 +00:00

25 lines
594 B
C++

--- 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);