|
@@ -1,29 +1,30 @@
|
|
|
-/*
|
|
|
- native_midi: Hardware Midi support for the SDL_mixer library
|
|
|
- Copyright (C) 2000,2001 Florian 'Proff' Schulze
|
|
|
-
|
|
|
- This library is free software; you can redistribute it and/or
|
|
|
- modify it under the terms of the GNU Library General Public
|
|
|
- License as published by the Free Software Foundation; either
|
|
|
- version 2 of the License, or (at your option) any later version.
|
|
|
-
|
|
|
- This library 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
|
|
|
- Library General Public License for more details.
|
|
|
-
|
|
|
- You should have received a copy of the GNU Library General Public
|
|
|
- License along with this library; if not, write to the Free
|
|
|
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
-
|
|
|
- Florian 'Proff' Schulze
|
|
|
- florian.proff.schulze@gmx.net
|
|
|
-*/
|
|
|
+/* -*- mode: c; tab-width: 4; c-basic-offset: 4; c-file-style: "linux" -*- */
|
|
|
+//
|
|
|
+// Copyright (c) 2009-2011, Wei Mingzhi <whistler_wmz@users.sf.net>.
|
|
|
+// Copyright (c) 2011-2017, SDLPAL development team.
|
|
|
+// All rights reserved.
|
|
|
+//
|
|
|
+// This file is part of SDLPAL.
|
|
|
+//
|
|
|
+// SDLPAL 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 3 of the License, or
|
|
|
+// (at your option) any later version.
|
|
|
+//
|
|
|
+// This program 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 more details.
|
|
|
+//
|
|
|
+// You should have received a copy of the GNU General Public License
|
|
|
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
+//
|
|
|
+// native_midi.cpp: Native Windows Desktop MIDI player for SDLPal.
|
|
|
+// @Author: Lou Yihua, 2017
|
|
|
+//
|
|
|
|
|
|
#include "SDL.h"
|
|
|
|
|
|
-/* everything below is currently one very big bad hack ;) Proff */
|
|
|
-
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
#include <windows.h>
|
|
|
#include <mmsystem.h>
|
|
@@ -36,6 +37,12 @@
|
|
|
#include <atomic>
|
|
|
#include <vector>
|
|
|
|
|
|
+#if (defined(__MINGW32__) || defined(__MINGW64__)) && !defined(_GLIBCXX_HAS_GTHREADS)
|
|
|
+#include "mingw.condition_variable.h"
|
|
|
+#include "mingw.mutex.h"
|
|
|
+#include "mingw.thread.h"
|
|
|
+#endif
|
|
|
+
|
|
|
#include "native_midi/native_midi.h"
|
|
|
#include "native_midi/native_midi_common.h"
|
|
|
|