Fix rebase breakage

This commit is contained in:
GravisZro 2024-05-23 20:53:51 -04:00
parent 22ab0c6d37
commit dc91b22635
13 changed files with 28 additions and 24 deletions

View File

@ -563,8 +563,8 @@ void grSurface::xlat8_16(char *data, int w, int h, char *pal) {
sptr = (char *)data; sptr = (char *)data;
rowsize_w = m_DataRowsize / 2; rowsize_w = m_DataRowsize / 2;
height = SET_MIN(h, ddsfObj.h); height = std::min(h, ddsfObj.h);
width = SET_MIN(w, ddsfObj.w); width = std::min(w, ddsfObj.w);
for (row = 0; row < height; row++) { for (row = 0; row < height; row++) {
for (col = 0; col < width; col++) { for (col = 0; col < width; col++) {
@ -677,8 +677,8 @@ void grSurface::xlat24_16(char *data, int w, int h) {
dptr = (uint16_t *)m_DataPtr; dptr = (uint16_t *)m_DataPtr;
sptr = (char *)data; sptr = (char *)data;
rowsize_w = m_DataRowsize / 2; rowsize_w = m_DataRowsize / 2;
height = SET_MIN(h, ddsfObj.h); height = std::min(h, ddsfObj.h);
width = SET_MIN(w, ddsfObj.w); width = std::min(w, ddsfObj.w);
for (row = 0; row < height; row++) { for (row = 0; row < height; row++) {
scol = 0; scol = 0;

View File

@ -173,9 +173,9 @@ int CZip::InputBit(BITFILE *bfile) {
return (value ? 1 : 0); return (value ? 1 : 0);
} }
ulong CZip::InputBits(BITFILE *bfile, int bitcount) { uint32_t CZip::InputBits(BITFILE *bfile, int bitcount) {
ulong mask; uint32_t mask;
ulong return_value; uint32_t return_value;
mask = 1L << (bitcount - 1); mask = 1L << (bitcount - 1);
return_value = 0; return_value = 0;

View File

@ -193,9 +193,9 @@
#include "mono.h" #include "mono.h"
#include <windows.h> #include <windows.h>
#include <stdarg.h> #include <cstdarg>
#include <stdlib.h> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -24,7 +24,7 @@
#include "briefinglocalizerDlg.h" #include "briefinglocalizerDlg.h"
#ifdef __LINUX__ #ifdef __LINUX__
#include "linux/linux_fix.h" #include "linux_fix.h"
#endif #endif
#include <sys/types.h> #include <sys/types.h>

View File

@ -370,8 +370,8 @@ void OutToFile(char *format, ...)
if(CurrentOutputFile==NULL) return; if(CurrentOutputFile==NULL) return;
va_list marker; va_list marker;
va_start(marker,format); va_start(marker,format);
vsprintf(buffer,format,marker); std::vsprintf(buffer,format,marker);
cf_WriteString(CurrentOutputFile,buffer); cf_WriteString(CurrentOutputFile,buffer);
va_end(marker); va_end(marker);
} }

View File

@ -332,8 +332,8 @@ void outputtofile(char *format, ...)
{ {
char buffer[1024]; char buffer[1024];
va_list marker; va_list marker;
va_start(marker,format); va_start(marker,format);
vsprintf(buffer,format,marker); std::vsprintf(buffer,format,marker);
cf_WriteString(CurrentFile,buffer); cf_WriteString(CurrentFile,buffer);
va_end(marker); va_end(marker);
} }

View File

@ -218,7 +218,7 @@ void writeline(char *format, ... )
char buffer[2048]; char buffer[2048];
va_list marker; va_list marker;
va_start(marker,format); va_start(marker,format);
vsprintf(buffer,format,marker); std::vsprintf(buffer,format,marker);
va_end(marker); va_end(marker);
MassScriptEditContent += buffer; MassScriptEditContent += buffer;
@ -343,7 +343,7 @@ void CScriptMassCompile::SetStepText(int step,char *format,...)
char buffer[1024]; char buffer[1024];
va_list marker; va_list marker;
va_start(marker,format); va_start(marker,format);
vsprintf(buffer,format,marker); std::vsprintf(buffer,format,marker);
va_end(marker); va_end(marker);
CWnd *wnd; CWnd *wnd;

View File

@ -20,7 +20,7 @@
#include <windows.h> #include <windows.h>
#include "ddraw.h" #include "ddraw.h"
#elif defined(__LINUX__) #elif defined(__LINUX__)
#include "linux/linux_fix.h" #include "linux_fix.h"
#include "lnxscreenmode.h" #include "lnxscreenmode.h"
#else #else
#endif #endif

View File

@ -20,8 +20,9 @@
#define __CZIPFILE_H_ #define __CZIPFILE_H_
#include <cstdio> #include <cstdio>
#include <cstdint>
#ifdef __LINUX__ #ifdef __LINUX__
#include "linux/linux_fix.h" #include "linux_fix.h"
#endif #endif
#define OCF_VERSION 0x01 #define OCF_VERSION 0x01

View File

@ -31,6 +31,8 @@ void *GlobalLock(HGLOBAL hMem);
void Sleep(int millis); void Sleep(int millis);
char *strupr(char *string); char *strupr(char *string);
#define _stat stat
// Replace missing defines from stdlib.h // Replace missing defines from stdlib.h
#define _MAX_PATH 260 /* max. length of full pathname*/ #define _MAX_PATH 260 /* max. length of full pathname*/
#define _MAX_FNAME 256 /* max. length of path component*/ #define _MAX_FNAME 256 /* max. length of path component*/

View File

@ -708,6 +708,7 @@
* *
*/ */
#include <cstdio>
#include <cstring> #include <cstring>
#include <cstdarg> #include <cstdarg>
#include <cfloat> #include <cfloat>

View File

@ -18,10 +18,10 @@
// generic.cpp // generic.cpp
// 0.1 // 0.1
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <string.h> #include <cstring>
#include <stdarg.h> #include <cstdarg>
#include "osiris_import.h" #include "osiris_import.h"
#include "osiris_common.h" #include "osiris_common.h"

View File

@ -22,7 +22,7 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cstdarg> #include <cstdarg>
#include "linux/linux_fix.h" #include "linux_fix.h"
void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext); void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext);