Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -131,7 +131,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 @@ -39,7 +39,7 @@

#include "utf8.h"

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

HINSTANCE LanguageResources;

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 @@ -161,7 +161,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 @@ -44,7 +44,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
1 change: 1 addition & 0 deletions code/vqalib/cmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#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,9 +45,17 @@
#include "vqaplayp.h"
#include <stdio.h>
#include <fcntl.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include <string.h>

#ifndef O_BINARY
#define O_BINARY 0
#endif


long __cdecl Disk_VQA_Stream_Handler(VQAHandle *vqa, long action, void *buffer, long nbytes)
{
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