|
From: <man...@us...> - 2014-10-07 08:51:44
|
Revision: 4402
http://sourceforge.net/p/modplug/code/4402
Author: manxorist
Date: 2014-10-07 08:51:36 +0000 (Tue, 07 Oct 2014)
Log Message:
-----------
[Ref] WriteInstrumentHeaderStructOrField() should not get compiled if MODPLUG_NO_FILESAVE.
Modified Paths:
--------------
trunk/OpenMPT/soundlib/Sndfile.cpp
trunk/OpenMPT/soundlib/Sndfile.h
Modified: trunk/OpenMPT/soundlib/Sndfile.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Sndfile.cpp 2014-10-06 22:58:33 UTC (rev 4401)
+++ trunk/OpenMPT/soundlib/Sndfile.cpp 2014-10-07 08:51:36 UTC (rev 4402)
@@ -291,6 +291,7 @@
}
} // unnamed namespace.
+#ifndef MODPLUG_NO_FILESAVE
// Write (in 'file') 'input' ModInstrument with 'code' & 'size' extra field infos for each member
void WriteInstrumentHeaderStructOrField(ModInstrument * input, FILE * file, uint32 only_this_code, int16 fixedsize)
{
@@ -375,6 +376,7 @@
WRITE_MPTHEADER_sized_member( VolEnv.dwFlags , uint32 , VFLG )
WRITE_MPTHEADER_sized_member( midiPWD , int8 , MPWD )
}
+#endif // !MODPLUG_NO_FILESAVE
// --------------------------------------------------------------------------------------------
Modified: trunk/OpenMPT/soundlib/Sndfile.h
===================================================================
--- trunk/OpenMPT/soundlib/Sndfile.h 2014-10-06 22:58:33 UTC (rev 4401)
+++ trunk/OpenMPT/soundlib/Sndfile.h 2014-10-07 08:51:36 UTC (rev 4402)
@@ -59,7 +59,9 @@
// -----------------------------------------------------------------------------------------
// MODULAR ModInstrument FIELD ACCESS : body content at the (near) top of Sndfile.cpp !!!
// -----------------------------------------------------------------------------------------
+#ifndef MODPLUG_NO_FILESAVE
extern void WriteInstrumentHeaderStructOrField(ModInstrument * input, FILE * file, uint32 only_this_code = -1 /* -1 for all */, int16 fixedsize = 0);
+#endif // !MODPLUG_NO_FILESAVE
extern bool ReadInstrumentHeaderField(ModInstrument * input, uint32 fcode, uint16 fsize, FileReader &file);
// --------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|