summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build/makedep.c1
-rw-r--r--src/build/makemak.c1
-rw-r--r--src/lib/formats/a26_cas.c1
-rw-r--r--src/lib/formats/ace_tap.c3
-rw-r--r--src/lib/formats/adam_cas.c2
-rw-r--r--src/lib/formats/apf_apt.c2
-rw-r--r--src/lib/formats/atom_tap.c2
-rw-r--r--src/lib/formats/cbm_tap.c2
-rw-r--r--src/lib/formats/cgen_cas.c2
-rw-r--r--src/lib/formats/fc100_cas.c2
-rw-r--r--src/lib/formats/fm7_cas.c2
-rw-r--r--src/lib/formats/fmsx_cas.c2
-rw-r--r--src/lib/formats/gtp_cas.c2
-rw-r--r--src/lib/formats/hect_tap.c2
-rw-r--r--src/lib/formats/ioprocs.c1
-rw-r--r--src/lib/formats/kim1_cas.c2
-rw-r--r--src/lib/formats/lviv_lvt.c2
-rw-r--r--src/lib/formats/mbee_cas.c2
-rw-r--r--src/lib/formats/mz_cas.c1
-rw-r--r--src/lib/formats/orao_cas.c2
-rw-r--r--src/lib/formats/oric_tap.c2
-rw-r--r--src/lib/formats/p6001_cas.c2
-rw-r--r--src/lib/formats/phc25_cas.c2
-rw-r--r--src/lib/formats/pmd_cas.c2
-rw-r--r--src/lib/formats/primoptp.c2
-rw-r--r--src/lib/formats/rk_cas.c2
-rw-r--r--src/lib/formats/sc3000_bit.c2
-rw-r--r--src/lib/formats/sol_cas.c2
-rw-r--r--src/lib/formats/sorc_cas.c2
-rw-r--r--src/lib/formats/sord_cas.c1
-rw-r--r--src/lib/formats/spc1000_cas.c2
-rw-r--r--src/lib/formats/svi_cas.c2
-rw-r--r--src/lib/formats/thom_cas.c1
-rw-r--r--src/lib/formats/trs_cas.c2
-rw-r--r--src/lib/formats/tvc_cas.c2
-rw-r--r--src/lib/formats/tzx_cas.c2
-rw-r--r--src/lib/formats/uef_cas.c1
-rw-r--r--src/lib/formats/vg5k_cas.c2
-rw-r--r--src/lib/formats/vt_cas.c2
-rw-r--r--src/lib/formats/wavfile.c1
-rw-r--r--src/lib/formats/x07_cas.c2
-rw-r--r--src/lib/formats/x1_tap.c2
-rw-r--r--src/lib/formats/zx81_p.c2
-rw-r--r--src/lib/util/corefile.c2
-rw-r--r--src/lib/util/delegate.c2
-rw-r--r--src/lib/util/options.c1
-rw-r--r--src/lib/util/tagmap.c2
-rw-r--r--src/lib/util/xmlfile.c2
-rw-r--r--src/lib/util/zippath.c1
-rw-r--r--src/mess/tools/castool/main.c1
-rw-r--r--src/mess/tools/imgtool/modules.c1
-rw-r--r--src/tools/nltool.c1
-rw-r--r--src/tools/split.c1
-rw-r--r--src/tools/src2html.c1
54 files changed, 93 insertions, 0 deletions
diff --git a/src/build/makedep.c b/src/build/makedep.c
index 8e135871d09..09ca9a75b49 100644
--- a/src/build/makedep.c
+++ b/src/build/makedep.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <ctype.h>
#include <zlib.h>
+#include <assert.h>
#include "osdcore.h"
#include "astring.h"
#include "corefile.h"
diff --git a/src/build/makemak.c b/src/build/makemak.c
index 9f83357cac4..dfbd36cfef3 100644
--- a/src/build/makemak.c
+++ b/src/build/makemak.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <ctype.h>
#include <zlib.h>
+#include <assert.h>
#include "osdcore.h"
#include "astring.h"
#include "corefile.h"
diff --git a/src/lib/formats/a26_cas.c b/src/lib/formats/a26_cas.c
index 5d557626912..7ee425fd1af 100644
--- a/src/lib/formats/a26_cas.c
+++ b/src/lib/formats/a26_cas.c
@@ -4,6 +4,7 @@ Atari 2600 SuperCharger support
*/
+#include <assert.h>
#include "formats/a26_cas.h"
diff --git a/src/lib/formats/ace_tap.c b/src/lib/formats/ace_tap.c
index b57dcb03cd7..8d6d4694b05 100644
--- a/src/lib/formats/ace_tap.c
+++ b/src/lib/formats/ace_tap.c
@@ -7,6 +7,9 @@ For more information see:
- http://www.jupiter-ace.co.uk/doc_AceTapeFormat.html
********************************************************************/
+
+#include <assert.h>
+
#include "ace_tap.h"
diff --git a/src/lib/formats/adam_cas.c b/src/lib/formats/adam_cas.c
index 1e8e328b517..83f873c5f00 100644
--- a/src/lib/formats/adam_cas.c
+++ b/src/lib/formats/adam_cas.c
@@ -1,4 +1,6 @@
+#include <assert.h>
+
#include "cassimg.h"
#include "adam_cas.h"
diff --git a/src/lib/formats/apf_apt.c b/src/lib/formats/apf_apt.c
index 58582ef5dc8..b609a109ef6 100644
--- a/src/lib/formats/apf_apt.c
+++ b/src/lib/formats/apf_apt.c
@@ -34,6 +34,8 @@ e. A checksum byte (8-bit addition)
********************************************************************/
+#include <assert.h>
+
#include "formats/apf_apt.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/atom_tap.c b/src/lib/formats/atom_tap.c
index a5a76a8733e..99335fa4230 100644
--- a/src/lib/formats/atom_tap.c
+++ b/src/lib/formats/atom_tap.c
@@ -38,6 +38,8 @@
*/
+#include <assert.h>
+
#include "atom_tap.h"
#include "uef_cas.h"
/***************************************************************************
diff --git a/src/lib/formats/cbm_tap.c b/src/lib/formats/cbm_tap.c
index a78b03df117..f02b4ac1968 100644
--- a/src/lib/formats/cbm_tap.c
+++ b/src/lib/formats/cbm_tap.c
@@ -92,6 +92,8 @@ Unfortunately, I have no such a .tap file to test, so my implementation
below could be not working. FP ]
*/
+#include <assert.h>
+
#include "cbm_tap.h"
diff --git a/src/lib/formats/cgen_cas.c b/src/lib/formats/cgen_cas.c
index 242e833ceb2..5d29f7e2b61 100644
--- a/src/lib/formats/cgen_cas.c
+++ b/src/lib/formats/cgen_cas.c
@@ -7,6 +7,8 @@ Current state: Not working. Only the sync signal and 0x66 byte get
********************************************************************/
+#include <assert.h>
+
#include "formats/cgen_cas.h"
#define TAPE_HEADER "Colour Genie - Virtual Tape File"
diff --git a/src/lib/formats/fc100_cas.c b/src/lib/formats/fc100_cas.c
index 64deef962a0..415d3fb01db 100644
--- a/src/lib/formats/fc100_cas.c
+++ b/src/lib/formats/fc100_cas.c
@@ -10,6 +10,8 @@ it's all a guess.
********************************************************************/
+#include <assert.h>
+
#include "fc100_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/fm7_cas.c b/src/lib/formats/fm7_cas.c
index 32ec7390459..48b0239f738 100644
--- a/src/lib/formats/fm7_cas.c
+++ b/src/lib/formats/fm7_cas.c
@@ -2,6 +2,8 @@
* Fujitsu FM-7 series cassette handling
*/
+#include <assert.h>
+
#include "fm7_cas.h"
#define WAVE_HIGH 0x5a9e
diff --git a/src/lib/formats/fmsx_cas.c b/src/lib/formats/fmsx_cas.c
index 082be3cda3f..54b64ae4d01 100644
--- a/src/lib/formats/fmsx_cas.c
+++ b/src/lib/formats/fmsx_cas.c
@@ -1,3 +1,5 @@
+#include <assert.h>
+
#include "formats/fmsx_cas.h"
diff --git a/src/lib/formats/gtp_cas.c b/src/lib/formats/gtp_cas.c
index 47baa0aba7e..0fe391e9767 100644
--- a/src/lib/formats/gtp_cas.c
+++ b/src/lib/formats/gtp_cas.c
@@ -4,6 +4,8 @@
Miodrag Milanovic
*/
+#include <assert.h>
+
#include "gtp_cas.h"
diff --git a/src/lib/formats/hect_tap.c b/src/lib/formats/hect_tap.c
index ad67de93ecc..745cf2a0038 100644
--- a/src/lib/formats/hect_tap.c
+++ b/src/lib/formats/hect_tap.c
@@ -12,6 +12,8 @@ You can find some *.K7 file on serveral server in France
Updated 3/1/10 : use real value for timing.
********************************************************************/
+#include <assert.h>
+
#include "hect_tap.h"
diff --git a/src/lib/formats/ioprocs.c b/src/lib/formats/ioprocs.c
index 3c47414ae00..b1771bf3774 100644
--- a/src/lib/formats/ioprocs.c
+++ b/src/lib/formats/ioprocs.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <string.h>
+#include <assert.h>
#include "osdcore.h"
#include "ioprocs.h"
#include "corefile.h"
diff --git a/src/lib/formats/kim1_cas.c b/src/lib/formats/kim1_cas.c
index c3e048e6acc..b8433c0eea0 100644
--- a/src/lib/formats/kim1_cas.c
+++ b/src/lib/formats/kim1_cas.c
@@ -1,3 +1,5 @@
+#include <assert.h>
+
#include "kim1_cas.h"
#define SMPLO -32768
diff --git a/src/lib/formats/lviv_lvt.c b/src/lib/formats/lviv_lvt.c
index 62de1d63981..87a56a6e2c2 100644
--- a/src/lib/formats/lviv_lvt.c
+++ b/src/lib/formats/lviv_lvt.c
@@ -1,4 +1,6 @@
/* .LVT tape images */
+#include <assert.h>
+
#include "lviv_lvt.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/mbee_cas.c b/src/lib/formats/mbee_cas.c
index 592ae38e627..fe0a2ffbc24 100644
--- a/src/lib/formats/mbee_cas.c
+++ b/src/lib/formats/mbee_cas.c
@@ -56,6 +56,8 @@ TAP - has an ID header of TAP_DGOS_BEE or MBEE, null terminated.
********************************************************************/
+#include <assert.h>
+
#include "mbee_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/mz_cas.c b/src/lib/formats/mz_cas.c
index d7897ddf56f..56662f6c760 100644
--- a/src/lib/formats/mz_cas.c
+++ b/src/lib/formats/mz_cas.c
@@ -1,4 +1,5 @@
#include <string.h>
+#include <assert.h>
#include "mz_cas.h"
#ifndef VERBOSE
diff --git a/src/lib/formats/orao_cas.c b/src/lib/formats/orao_cas.c
index 78080b19f1b..c771b234dda 100644
--- a/src/lib/formats/orao_cas.c
+++ b/src/lib/formats/orao_cas.c
@@ -3,6 +3,8 @@
Tape support for Orao TAP format
*/
+#include <assert.h>
+
#include "orao_cas.h"
diff --git a/src/lib/formats/oric_tap.c b/src/lib/formats/oric_tap.c
index ac6e6c0f72a..123552eea7a 100644
--- a/src/lib/formats/oric_tap.c
+++ b/src/lib/formats/oric_tap.c
@@ -1,3 +1,5 @@
+#include <assert.h>
+
#include "oric_tap.h"
#define ORIC_WAV_DEBUG 0
diff --git a/src/lib/formats/p6001_cas.c b/src/lib/formats/p6001_cas.c
index 78e5e929963..debe3f3b261 100644
--- a/src/lib/formats/p6001_cas.c
+++ b/src/lib/formats/p6001_cas.c
@@ -2,6 +2,8 @@
* NEC PC-6001 cassette format handling
*/
+#include <assert.h>
+
#include "p6001_cas.h"
#define WAVE_HIGH 0x5a9e
diff --git a/src/lib/formats/phc25_cas.c b/src/lib/formats/phc25_cas.c
index a0d807a335c..1253bd98a3a 100644
--- a/src/lib/formats/phc25_cas.c
+++ b/src/lib/formats/phc25_cas.c
@@ -29,6 +29,8 @@ enough to make it work.
********************************************************************/
+#include <assert.h>
+
#include "phc25_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/pmd_cas.c b/src/lib/formats/pmd_cas.c
index eefb8fc9622..ba5baee1a65 100644
--- a/src/lib/formats/pmd_cas.c
+++ b/src/lib/formats/pmd_cas.c
@@ -10,6 +10,8 @@
********************************************************************/
+#include <assert.h>
+
#include "pmd_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/primoptp.c b/src/lib/formats/primoptp.c
index ad8606617d9..6373d43fd4f 100644
--- a/src/lib/formats/primoptp.c
+++ b/src/lib/formats/primoptp.c
@@ -1,6 +1,8 @@
/* .PTP Microkey Primo tape images */
+#include <assert.h>
+
#include "primoptp.h"
diff --git a/src/lib/formats/rk_cas.c b/src/lib/formats/rk_cas.c
index 2a20a8499ab..150b17c8f3b 100644
--- a/src/lib/formats/rk_cas.c
+++ b/src/lib/formats/rk_cas.c
@@ -3,6 +3,8 @@
Tape support for RK format
*/
+#include <assert.h>
+
#include "rk_cas.h"
diff --git a/src/lib/formats/sc3000_bit.c b/src/lib/formats/sc3000_bit.c
index 4afe91371f9..f38f5a8d8c6 100644
--- a/src/lib/formats/sc3000_bit.c
+++ b/src/lib/formats/sc3000_bit.c
@@ -6,6 +6,8 @@
*********************************************************************/
+#include <assert.h>
+
#include "sc3000_bit.h"
/***************************************************************************
diff --git a/src/lib/formats/sol_cas.c b/src/lib/formats/sol_cas.c
index e5dc79cd21a..26f1bdccf00 100644
--- a/src/lib/formats/sol_cas.c
+++ b/src/lib/formats/sol_cas.c
@@ -34,6 +34,8 @@ SVT - The full explanation may be found on the Solace web site,
********************************************************************/
+#include <assert.h>
+
#include "sol_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/sorc_cas.c b/src/lib/formats/sorc_cas.c
index 99e9d46f7d9..6983dd0ba74 100644
--- a/src/lib/formats/sorc_cas.c
+++ b/src/lib/formats/sorc_cas.c
@@ -25,6 +25,8 @@ header and leader bytes.
********************************************************************/
+#include <assert.h>
+
#include "sorc_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/sord_cas.c b/src/lib/formats/sord_cas.c
index cab593d66e8..a2834931a2a 100644
--- a/src/lib/formats/sord_cas.c
+++ b/src/lib/formats/sord_cas.c
@@ -7,6 +7,7 @@
**************************************************************************/
#include <string.h>
+#include <assert.h>
#include "sord_cas.h"
#define SORDM5_WAVESAMPLES_HEADER 1
diff --git a/src/lib/formats/spc1000_cas.c b/src/lib/formats/spc1000_cas.c
index b02c287d02b..b05844b6ee7 100644
--- a/src/lib/formats/spc1000_cas.c
+++ b/src/lib/formats/spc1000_cas.c
@@ -21,6 +21,8 @@ IPL: This seems a quickload format containing RAM dump, not a real tape
********************************************************************/
+#include <assert.h>
+
#include "spc1000_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/svi_cas.c b/src/lib/formats/svi_cas.c
index edb015382ba..6b693b4d461 100644
--- a/src/lib/formats/svi_cas.c
+++ b/src/lib/formats/svi_cas.c
@@ -1,3 +1,5 @@
+#include <assert.h>
+
#include "svi_cas.h"
#define CAS_PERIOD_0 (37)
diff --git a/src/lib/formats/thom_cas.c b/src/lib/formats/thom_cas.c
index e48f217ead6..36fb6e4de51 100644
--- a/src/lib/formats/thom_cas.c
+++ b/src/lib/formats/thom_cas.c
@@ -7,6 +7,7 @@
**********************************************************************/
#include <math.h>
+#include <assert.h>
#include "pool.h"
#include "cassimg.h"
diff --git a/src/lib/formats/trs_cas.c b/src/lib/formats/trs_cas.c
index 6956e488d4c..6e143200bc9 100644
--- a/src/lib/formats/trs_cas.c
+++ b/src/lib/formats/trs_cas.c
@@ -4,6 +4,8 @@ Support for TRS80 .cas cassette images
********************************************************************/
+#include <assert.h>
+
#include "formats/trs_cas.h"
#define SILENCE 0
diff --git a/src/lib/formats/tvc_cas.c b/src/lib/formats/tvc_cas.c
index a24b1ed79b1..a33fba687b9 100644
--- a/src/lib/formats/tvc_cas.c
+++ b/src/lib/formats/tvc_cas.c
@@ -8,6 +8,8 @@
********************************************************************/
+#include <assert.h>
+
#include "tvc_cas.h"
#define TVC64_BIT0_FREQ 1812
diff --git a/src/lib/formats/tzx_cas.c b/src/lib/formats/tzx_cas.c
index c7950138a09..71ad4c747f5 100644
--- a/src/lib/formats/tzx_cas.c
+++ b/src/lib/formats/tzx_cas.c
@@ -38,6 +38,8 @@ We are currently using the numbers from the TZX specification...
*/
+#include <assert.h>
+
#include "tzx_cas.h"
diff --git a/src/lib/formats/uef_cas.c b/src/lib/formats/uef_cas.c
index 60a4ade6775..6a5c8668c8e 100644
--- a/src/lib/formats/uef_cas.c
+++ b/src/lib/formats/uef_cas.c
@@ -12,6 +12,7 @@ Not nice, but it works...
#include <string.h>
#include <math.h>
+#include <assert.h>
#include <zlib.h>
#include "uef_cas.h"
diff --git a/src/lib/formats/vg5k_cas.c b/src/lib/formats/vg5k_cas.c
index 78e63cabb0b..ef648707fd8 100644
--- a/src/lib/formats/vg5k_cas.c
+++ b/src/lib/formats/vg5k_cas.c
@@ -5,6 +5,8 @@
Support for VG-5000 .k7 cassette images
********************************************************************/
+#include <assert.h>
+
#include "vg5k_cas.h"
diff --git a/src/lib/formats/vt_cas.c b/src/lib/formats/vt_cas.c
index 4040b00d7aa..734954a2ab6 100644
--- a/src/lib/formats/vt_cas.c
+++ b/src/lib/formats/vt_cas.c
@@ -1,3 +1,5 @@
+#include <assert.h>
+
#include "formats/vt_cas.h"
/*********************************************************************
diff --git a/src/lib/formats/wavfile.c b/src/lib/formats/wavfile.c
index c02f9634119..e332110fbff 100644
--- a/src/lib/formats/wavfile.c
+++ b/src/lib/formats/wavfile.c
@@ -7,6 +7,7 @@
*********************************************************************/
#include <stdio.h>
+#include <assert.h>
#include "wavfile.h"
#include "cassimg.h"
diff --git a/src/lib/formats/x07_cas.c b/src/lib/formats/x07_cas.c
index fb581f6a44c..54f46acd488 100644
--- a/src/lib/formats/x07_cas.c
+++ b/src/lib/formats/x07_cas.c
@@ -6,6 +6,8 @@
********************************************************************/
+#include <assert.h>
+
#include "x07_cas.h"
#define WAVEENTRY_LOW -32768
diff --git a/src/lib/formats/x1_tap.c b/src/lib/formats/x1_tap.c
index 3d42c41dad4..880037c8f3a 100644
--- a/src/lib/formats/x1_tap.c
+++ b/src/lib/formats/x1_tap.c
@@ -19,6 +19,8 @@
*
*/
+#include <assert.h>
+
#include "x1_tap.h"
#define WAVE_HIGH 0x5a9e
diff --git a/src/lib/formats/zx81_p.c b/src/lib/formats/zx81_p.c
index bfb871c3c51..e2e1e33f035 100644
--- a/src/lib/formats/zx81_p.c
+++ b/src/lib/formats/zx81_p.c
@@ -29,6 +29,8 @@ medium transfer rate is approx. 307 bps (38 bytes/sec) for files that contain
*****************************************************************************/
+#include <assert.h>
+
#include "zx81_p.h"
diff --git a/src/lib/util/corefile.c b/src/lib/util/corefile.c
index 977024b5143..abba0a6b5b9 100644
--- a/src/lib/util/corefile.c
+++ b/src/lib/util/corefile.c
@@ -8,6 +8,8 @@
***************************************************************************/
+#include <assert.h>
+
#include "corefile.h"
#include "unicode.h"
#include <zlib.h>
diff --git a/src/lib/util/delegate.c b/src/lib/util/delegate.c
index ad66cc09168..6c688f72985 100644
--- a/src/lib/util/delegate.c
+++ b/src/lib/util/delegate.c
@@ -8,6 +8,8 @@
***************************************************************************/
+#include <assert.h>
+
#include "osdcomm.h"
#include "delegate.h"
diff --git a/src/lib/util/options.c b/src/lib/util/options.c
index 96315678471..ba580c9ee3a 100644
--- a/src/lib/util/options.c
+++ b/src/lib/util/options.c
@@ -11,6 +11,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <ctype.h>
+#include <assert.h>
#include "options.h"
#include "astring.h"
diff --git a/src/lib/util/tagmap.c b/src/lib/util/tagmap.c
index c3f1ad304db..c8247899dcc 100644
--- a/src/lib/util/tagmap.c
+++ b/src/lib/util/tagmap.c
@@ -8,6 +8,8 @@
***************************************************************************/
+#include <assert.h>
+
#include "tagmap.h"
#ifdef MAME_DEBUG
diff --git a/src/lib/util/xmlfile.c b/src/lib/util/xmlfile.c
index 2c8d78cdcdb..e03893134f9 100644
--- a/src/lib/util/xmlfile.c
+++ b/src/lib/util/xmlfile.c
@@ -8,6 +8,8 @@
***************************************************************************/
+#include <assert.h>
+
#include "xmlfile.h"
#include <ctype.h>
#include <expat.h>
diff --git a/src/lib/util/zippath.c b/src/lib/util/zippath.c
index d0f5931658d..e5e563cdbde 100644
--- a/src/lib/util/zippath.c
+++ b/src/lib/util/zippath.c
@@ -9,6 +9,7 @@
#include <ctype.h>
#include <stdlib.h>
#include <new>
+#include <assert.h>
#include "zippath.h"
#include "unzip.h"
#include "corestr.h"
diff --git a/src/mess/tools/castool/main.c b/src/mess/tools/castool/main.c
index e41542980b8..22564dcdf78 100644
--- a/src/mess/tools/castool/main.c
+++ b/src/mess/tools/castool/main.c
@@ -15,6 +15,7 @@
#include <ctype.h>
#include <stdlib.h>
#include <time.h>
+#include <assert.h>
#include "corestr.h"
diff --git a/src/mess/tools/imgtool/modules.c b/src/mess/tools/imgtool/modules.c
index 192a0176528..eec6c564025 100644
--- a/src/mess/tools/imgtool/modules.c
+++ b/src/mess/tools/imgtool/modules.c
@@ -6,6 +6,7 @@
***************************************************************************/
+#include "imgtool.h"
#include "modules.h"
#ifndef MODULES_RECURSIVE
diff --git a/src/tools/nltool.c b/src/tools/nltool.c
index 22d4cf6bd8d..92b4960be4d 100644
--- a/src/tools/nltool.c
+++ b/src/tools/nltool.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <ctype.h>
#include <sstream>
+#include <assert.h>
#include "astring.h"
#include "corefile.h"
#include "corestr.h"
diff --git a/src/tools/split.c b/src/tools/split.c
index 2144f11b9c2..02e546fce14 100644
--- a/src/tools/split.c
+++ b/src/tools/split.c
@@ -12,6 +12,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+#include <assert.h>
#include "astring.h"
#include "corefile.h"
#include "corestr.h"
diff --git a/src/tools/src2html.c b/src/tools/src2html.c
index dbbc3512c9e..5ebe31ee71f 100644
--- a/src/tools/src2html.c
+++ b/src/tools/src2html.c
@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+#include <assert.h>
#include "osdcore.h"
#include "astring.h"
#include "corefile.h"