OpenToonz - An open-source full-featured 2D animation creation software
C
Minor changes to preproc checks needed for building on Linux
Campbell Barton07f3e872bdee
diff --git a/toonz/sources/common/tiio/movsettings.cpp b/toonz/sources/common/tiio/movsettings.cppindex fb3a83fff..6918478da 100644--- a/toonz/sources/common/tiio/movsettings.cpp+++ b/toonz/sources/common/tiio/movsettings.cpp@@ -7,7 +7,7 @@#include "tproperty.h"#include "tiio.h"-#if !(defined(x64) || defined(__LP64__))+#if !(defined(x64) || defined(__LP64__) || defined(LINUX))//*******************************************************************************// 32-bit versiondiff --git a/toonz/sources/include/movsettings.h b/toonz/sources/include/movsettings.hindex b75e0e35a..e32e2ed34 100644--- a/toonz/sources/include/movsettings.h+++ b/toonz/sources/include/movsettings.h@@ -13,7 +13,7 @@#define DVVAR DV_IMPORT_VAR#endif-#if !(defined(x64) || defined(__LP64__))+#if !(defined(x64) || defined(__LP64__) || defined(LINUX))#ifdef _WIN32diff --git a/toonz/sources/include/tgl.h b/toonz/sources/include/tgl.hindex 71c0424b7..d54f644de 100644--- a/toonz/sources/include/tgl.h+++ b/toonz/sources/include/tgl.h@@ -21,6 +21,12 @@#define GLUT_NO_WARNING_DISABLE#endif+#ifdef LINUX+#include <GL/gl.h>+#include <GL/glu.h>+#include <GL/glut.h>+#endif+//#include "tcurves.h"#include "traster.h"//#include "tfilepath.h"diff --git a/toonz/sources/include/tsound_t.h b/toonz/sources/include/tsound_t.hindex f22de2499..082ba835b 100644--- a/toonz/sources/include/tsound_t.h+++ b/toonz/sources/include/tsound_t.h@@ -431,7 +431,7 @@ public:};//==============================================================================-#ifdef MACOSX+#if defined(MACOSX) || defined(LINUX)template <class T>DVAPI TSoundTrackP TSoundTrackT<T>::apply(TSoundTransform *transform){diff --git a/toonz/sources/t32bitsrv/main.cpp b/toonz/sources/t32bitsrv/main.cppindex 6f7ac0bde..83d5c8461 100644--- a/toonz/sources/t32bitsrv/main.cpp+++ b/toonz/sources/t32bitsrv/main.cpp@@ -1,6 +1,6 @@-#if (!(defined(x64) || defined(__LP64__)))+#if (!(defined(x64) || defined(__LP64__) || defined(LINUX)))//Toonz includes#include "tiio_std.h"diff --git a/toonz/sources/t32bitsrv/t323gpmsg.cpp b/toonz/sources/t32bitsrv/t323gpmsg.cppindex 6dfd27e95..248e322e2 100644--- a/toonz/sources/t32bitsrv/t323gpmsg.cpp+++ b/toonz/sources/t32bitsrv/t323gpmsg.cpp@@ -1,6 +1,6 @@-#if (!(defined(x64) || defined(__LP64__)))+#if (!(defined(x64) || defined(__LP64__) || defined(LINUX)))//Toonz stuff#include "tiio.h"diff --git a/toonz/sources/t32bitsrv/t32movmsg.cpp b/toonz/sources/t32bitsrv/t32movmsg.cppindex db50ab813..65104067a 100644--- a/toonz/sources/t32bitsrv/t32movmsg.cpp+++ b/toonz/sources/t32bitsrv/t32movmsg.cpp@@ -1,6 +1,6 @@-#if (!(defined(x64) || defined(__LP64__)))+#if (!(defined(x64) || defined(__LP64__) || defined(LINUX)))//Toonz stuff#include "tiio.h"diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cppindex bdffd36a7..3852d901a 100644--- a/toonz/sources/toonz/main.cpp+++ b/toonz/sources/toonz/main.cpp@@ -437,6 +437,10 @@ int main(int argc, char *argv[])fmt.setStencil(true);QGLFormat::setDefaultFormat(fmt);+#ifdef LINUX+ glutInit(&argc, argv);+#endif+splash.showMessage(offsetStr + "Initializing Toonz environment ...", Qt::AlignCenter, Qt::white);a.processEvents();@@ -495,7 +499,7 @@ int main(int argc, char *argv[])// Carico la traduzione contenuta in toonz.qm (se � presente)QString languagePathString = QString::fromStdString(toString(TEnv::getConfigDir() + "loc"));-#ifdef MACOSX+#ifndef WIN32//the merge of menu on osx can cause problems with different languages with the Preferences menu//qt_mac_set_menubar_merge(false);languagePathString += "/" + Preferences::instance()->getCurrentLanguage();diff --git a/toonz/sources/toonz/sceneviewer.cpp b/toonz/sources/toonz/sceneviewer.cppindex 169fa65d5..9bcbda139 100644--- a/toonz/sources/toonz/sceneviewer.cpp+++ b/toonz/sources/toonz/sceneviewer.cpp@@ -1422,7 +1422,7 @@ void SceneViewer::paintGL()/* QGLWidget の widget 生成/削除のタイミングで(platform によって?) GL_FRAMEBUFFER_UNDEFINED の状態で paintGL() が呼ばれてしまうようだ */return;}-#ifndef MACOSX+#ifdef WIN32//following line is necessary to solve a problem Windows 7SetWindowRgn((HWND)winId(), 0, FALSE);#else