aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/midi
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-06 19:02:56 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-06 19:02:56 +0000
commit57247ddc701c856e3bd0811566405ab4ac69e9ff (patch)
treefb90625caf573a20f65354ade1023ecb396c8456 /Game/Code/lib/midi
parentc9f0475aa950753f91fddf36f94d488e554d3757 (diff)
downloadusdx-57247ddc701c856e3bd0811566405ab4ac69e9ff.tar.gz
usdx-57247ddc701c856e3bd0811566405ab4ac69e9ff.tar.xz
usdx-57247ddc701c856e3bd0811566405ab4ac69e9ff.zip
moved AllocateHWnd/DeallocateHWnd from UCommon.pas to WinAllocation.pas. Do NOT use them in USDX code. They are just by the DirWatch and Midi... libs in FPC (Windows).
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1224 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/lib/midi/MidiFile.pas8
-rw-r--r--Game/Code/lib/midi/Midiin.pas4
-rw-r--r--Game/Code/lib/midi/Midiout.pas4
3 files changed, 11 insertions, 5 deletions
diff --git a/Game/Code/lib/midi/MidiFile.pas b/Game/Code/lib/midi/MidiFile.pas
index 4279d305..57c9a161 100644
--- a/Game/Code/lib/midi/MidiFile.pas
+++ b/Game/Code/lib/midi/MidiFile.pas
@@ -99,9 +99,11 @@ uses
Windows,
//Forms,
Messages,
- SysUtils,
- UCommon,
- Classes;
+ Classes,
+ {$IFDEF FPC}
+ WinAllocation,
+ {$ENDIF}
+ SysUtils;
type
TChunkType = (illegal, header, track);
diff --git a/Game/Code/lib/midi/Midiin.pas b/Game/Code/lib/midi/Midiin.pas
index 3688d5c9..21db0298 100644
--- a/Game/Code/lib/midi/Midiin.pas
+++ b/Game/Code/lib/midi/Midiin.pas
@@ -112,7 +112,9 @@ uses
Messages,
Windows,
MMSystem,
- UCommon,
+ {$IFDEF FPC}
+ WinAllocation,
+ {$ENDIF}
MidiDefs,
MidiType,
MidiCons,
diff --git a/Game/Code/lib/midi/Midiout.pas b/Game/Code/lib/midi/Midiout.pas
index 2463ae8a..606d0dae 100644
--- a/Game/Code/lib/midi/Midiout.pas
+++ b/Game/Code/lib/midi/Midiout.pas
@@ -107,7 +107,9 @@ uses
Messages,
Classes,
MMSystem,
- UCommon,
+ {$IFDEF FPC}
+ WinAllocation,
+ {$ENDIF}
Circbuf,
MidiType,
MidiDefs,