Lines 29-40
Link Here
|
29 |
# include "config.h" |
29 |
# include "config.h" |
30 |
#endif |
30 |
#endif |
31 |
|
31 |
|
32 |
#include <vlc_common.h> /* VLC_COMMON_MEMBERS for vlc_interface.h */ |
32 |
#include <QtGlobal> |
33 |
#include <vlc_interface.h> /* intf_thread_t */ |
|
|
34 |
#include <vlc_playlist.h> /* playlist_t */ |
35 |
|
36 |
#define QT_NO_CAST_TO_ASCII |
37 |
#include <QString> |
38 |
|
33 |
|
39 |
#if ( QT_VERSION < 0x040600 ) |
34 |
#if ( QT_VERSION < 0x040600 ) |
40 |
# error Update your Qt version to at least 4.6.0 |
35 |
# error Update your Qt version to at least 4.6.0 |
Lines 43-48
Link Here
|
43 |
#define HAS_QT47 ( QT_VERSION >= 0x040700 ) |
38 |
#define HAS_QT47 ( QT_VERSION >= 0x040700 ) |
44 |
#define HAS_QT5 ( QT_VERSION >= 0x050000 ) |
39 |
#define HAS_QT5 ( QT_VERSION >= 0x050000 ) |
45 |
|
40 |
|
|
|
41 |
#if HAS_QT5 |
42 |
#include <QtCore/qcompilerdetection.h> |
43 |
#if defined(Q_COMPILER_ATOMICS) && \ |
44 |
( __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7 ) ) |
45 |
#define VLC_ATOMIC_H |
46 |
#include <atomic> |
47 |
using namespace std; |
48 |
# define atomic_store(object,desired) \ |
49 |
do { \ |
50 |
*(object) = (desired); \ |
51 |
__sync_synchronize(); \ |
52 |
} while (0) |
53 |
|
54 |
# define atomic_load(object) \ |
55 |
(__sync_synchronize(), *(object)) |
56 |
#endif |
57 |
#endif |
58 |
|
59 |
#include <vlc_common.h> /* VLC_COMMON_MEMBERS for vlc_interface.h */ |
60 |
#include <vlc_interface.h> /* intf_thread_t */ |
61 |
#include <vlc_playlist.h> /* playlist_t */ |
62 |
|
63 |
#define QT_NO_CAST_TO_ASCII |
64 |
#include <QString> |
65 |
|
46 |
enum { |
66 |
enum { |
47 |
DialogEventTypeOffset = 0, |
67 |
DialogEventTypeOffset = 0, |
48 |
IMEventTypeOffset = 100, |
68 |
IMEventTypeOffset = 100, |