blob: ffdb37485de40dfffdf111ec8c7bddd6dc345cb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
[GB.QT5]
* BUG: The component now should compile correctly with C++11.
Authored by: gambas 2017-01-09
Browse code at this revision
Parent: [r8048]
Child: [r8050]
changed /gambas/trunk/gb.qt4/src/CMenu.cpp
changed /gambas/trunk/gb.qt4/src/CWidget.cpp
changed /gambas/trunk/gb.qt5/src/Makefile.am
/gambas/trunk/gb.qt4/src/CMenu.cpp Diff Switch to side-by-side view
--- a/gambas/trunk/gb.qt4/src/CMenu.cpp
+++ b/gambas/trunk/gb.qt4/src/CMenu.cpp
@@ -59,7 +59,7 @@
#define HANDLE_PROXY(_ob) \
while (EXT(_ob) && EXT(_ob)->proxy) \
- _ob = (typeof _ob)(EXT(_ob)->proxy);
+ _ob = (__typeof__ _ob)(EXT(_ob)->proxy);
static CMENU_EXT *alloc_ext(CMENU *_object)
{
/gambas/trunk/gb.qt4/src/CWidget.cpp Diff Switch to side-by-side view
--- a/gambas/trunk/gb.qt4/src/CWidget.cpp
+++ b/gambas/trunk/gb.qt4/src/CWidget.cpp
@@ -96,7 +96,7 @@
#define HANDLE_PROXY(_ob) \
while (EXT(_ob) && EXT(_ob)->proxy) \
- _ob = (typeof _ob)(EXT(_ob)->proxy);
+ _ob = (__typeof__ _ob)(EXT(_ob)->proxy);
static CWIDGET_EXT *alloc_ext(CWIDGET *_object)
{
/gambas/trunk/gb.qt5/src/Makefile.am Diff Switch to side-by-side view
--- a/gambas/trunk/gb.qt5/src/Makefile.am
+++ b/gambas/trunk/gb.qt5/src/Makefile.am
@@ -8,7 +8,7 @@
gb_qt5_la_LIBADD = @THREAD_LIB@ @QT5_LIB@
gb_qt5_la_LDFLAGS = -module @LD_FLAGS@ @QT5_LDFLAGS@
-gb_qt5_la_CXXFLAGS = @THREAD_INC@ -DGB_QT_COMPONENT $(AM_CXXFLAGS)
+gb_qt5_la_CXXFLAGS = @THREAD_INC@ -DGB_QT_COMPONENT $(AM_CXXFLAGS) -std=c++11
gb_qt5_la_CPPFLAGS = @QT5_INC@ -I$(top_srcdir)/share/
gb_qt5_la_SOURCES = \
|