Skip to content

Commit a8492b3

Browse files
committed
Merge pull request sintegrial#1 from gcoco/MAC
Compile on a Mac
2 parents 5b9fd10 + e4050c2 commit a8492b3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

include/qwt3d_global.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// Create Qwt3d DLL if QWT3D_DLL is defined (Windows only)
1313
//
1414

15-
#if defined(Q_WS_WIN)
15+
#if defined(Q_OS_WIN)
1616
#if defined(_MSC_VER) /* MSVC Compiler */
1717
#pragma warning(disable: 4251) // dll interface required for stl templates
1818
//pragma warning(disable: 4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data
@@ -42,7 +42,7 @@
4242
#define QWT3D_TEMPLATEDLL
4343
#endif
4444

45-
#else // ! Q_WS_WIN
45+
#else // ! Q_OS_WIN
4646
#undef QWT3D_MAKEDLL /* ignore these for other platforms */
4747
#undef QWT3D_DLL
4848
#undef QWT3D_TEMPLATEDLL

include/qwt3d_openglhelper.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
//#include <qglobal.h>
66
#include <QtOpenGL/qgl.h>
7+
#ifdef Q_OS_MAC
8+
#include <OpenGL/glu.h>
9+
#else
710
#include <GL/glu.h>
11+
#endif
812

913
namespace Qwt3D
1014
{

include/qwt3d_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <string>
1010

11-
#if defined(Q_WS_WIN)
11+
#if defined(Q_OS_WIN)
1212
#include <windows.h>
1313
#endif
1414

0 commit comments

Comments
 (0)