Skip to content
Open
2 changes: 1 addition & 1 deletion code/arraylist.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <cstdlib>
#include <cstring>
#include <math.h>
#include <new.h>
#include <new>


template <class T>
Expand Down
2 changes: 2 additions & 0 deletions code/conquer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@
#include <direct.h>
#include <dos.h>
#include <fcntl.h>
#ifdef _WIN32
#include <io.h>
#endif
#include <share.h>
#include <span>

Expand Down
2 changes: 1 addition & 1 deletion code/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#include "data.h"

#include <new.h>
#include <new>

HINSTANCE LanguageResources;

Expand Down
4 changes: 4 additions & 0 deletions code/dbgprint.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@

#include "sun.h"

#ifdef _WIN32
#include <sal.h>
#else
#define _Printf_format_string_
#endif

void Debug_Init(void);
void Debug_Init_Console(void);
Expand Down
4 changes: 4 additions & 0 deletions code/except.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@

#include "win.h"

#ifdef _WIN32
#include <sal.h>
#else
#define _Printf_format_string_
#endif

// Posted to the main window so that a requested test fault happens inside window procedure
// dispatch, which the operating system unwinds differently from an ordinary call.
Expand Down
1 change: 1 addition & 0 deletions code/lcw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* LCW_Uncomp -- Decompress an LCW encoded data block. *
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#include <cstddef>
#include "always.h"
#include "lcw.h"

Expand Down
2 changes: 1 addition & 1 deletion code/newdel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifdef STEVES_NEW_CATCHER

#include <crtdbg.h>
#include <new.h>
#include <new>


/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion code/sha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void SHAEngine::Process_Partial(void const * & data, int & length)
** Attach as many bytes as possible from the source data into
** the staging buffer.
*/
int add_count = std::min((int)length, SRC_BLOCK_SIZE - PartialCount);
int add_count = std::min<int>((int)length, SRC_BLOCK_SIZE - PartialCount);
memcpy(&Partial[PartialCount], data, add_count);
data = ((char const *&)data) + add_count;
PartialCount += add_count;
Expand Down
2 changes: 1 addition & 1 deletion code/sha.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <new.h>
#include <new>


/*
Expand Down
2 changes: 2 additions & 0 deletions code/startup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@
#include <shellapi.h>

#include <conio.h>
#ifdef _WIN32
#include <io.h>
#endif
#include <cfloat>
#include <string>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion code/techtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "voc.hh"

#include <algorithm>
#include <new.h>
#include <new>


/***************************************************************************
Expand Down
6 changes: 3 additions & 3 deletions code/visualc.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
// Single precision pi, for the float paths that would otherwise round M_PI at every use.
#define M_FPI 3.141592654f

#endif


/*
** Macros to convert between degrees and radians
*/
Expand All @@ -134,6 +137,3 @@
#ifndef DEG_TO_RADF
#define DEG_TO_RADF(x) (((float)x)*M_PI/180.0f)
#endif


#endif
2 changes: 2 additions & 0 deletions code/vqalib/cmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#pragma once

#include <cstddef>

#include <cstdint>

#if defined(__WATCOMC__) || defined(_MSC_VER)
Expand Down
8 changes: 8 additions & 0 deletions code/vqalib/dstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@
#include "vqaplayp.h"
#include <stdio.h>
#include <fcntl.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif

#ifndef O_BINARY
#define O_BINARY 0
#endif
#include <string.h>


Expand Down
2 changes: 2 additions & 0 deletions code/wwfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@

#include <cstddef>
#include <cstdio>
#ifdef _WIN32
#include <io.h>
#endif

#ifndef SEEK_SET
#define SEEK_SET 0 // Seek from start of file.
Expand Down