summaryrefslogtreecommitdiff
path: root/libs/evoral/src/types.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-22 15:26:41 -0500
committerDavid Robillard <d@drobilla.net>2014-11-22 15:26:41 -0500
commit42b5ed3904f15df77c3a3c18e334fa422911387d (patch)
tree52c57f726950dc8dde0db9578d14b80dedc41919 /libs/evoral/src/types.cpp
parent73ad9935978e152e95b94b15aeb62b9ada4fe9e6 (diff)
Fix clang and MSVC build.
Diffstat (limited to 'libs/evoral/src/types.cpp')
-rw-r--r--libs/evoral/src/types.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/libs/evoral/src/types.cpp b/libs/evoral/src/types.cpp
new file mode 100644
index 0000000000..62614f9113
--- /dev/null
+++ b/libs/evoral/src/types.cpp
@@ -0,0 +1,29 @@
+/* This file is part of Evoral.
+ * Copyright (C) 2008 David Robillard <http://drobilla.net>
+ * Copyright (C) 2000-2008 Paul Davis
+ *
+ * Evoral is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * Evoral is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <limits.h>
+
+#include "evoral/types.hpp"
+
+namespace Evoral {
+
+const double MusicalTime::PPQN = 1920.0;
+const MusicalTime MaxMusicalTime = Evoral::MusicalTime(DBL_MIN);
+const MusicalTime MinMusicalTime = Evoral::MusicalTime(DBL_MAX);
+
+}