mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
fix to compile
This commit is contained in:
parent
91c6446af0
commit
a49b0a8c6f
2 changed files with 3 additions and 3 deletions
|
@ -101,8 +101,8 @@ cc_bool DynamicLib_GetAll(void* lib, const struct DynamicLibSym* syms, int count
|
||||||
|
|
||||||
|
|
||||||
#define _CRTDBG_MAP_ALLOC
|
#define _CRTDBG_MAP_ALLOC
|
||||||
#include <string.h>
|
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
/* Allocates a block of memory, with undetermined contents. Returns NULL on allocation failure. */
|
/* Allocates a block of memory, with undetermined contents. Returns NULL on allocation failure. */
|
||||||
#define Mem_TryAlloc(numElems, elemsSize) malloc(numElems * elemsSize)
|
#define Mem_TryAlloc(numElems, elemsSize) malloc(numElems * elemsSize)
|
||||||
|
|
|
@ -106,9 +106,9 @@ static int Program_Run(int argc, char** argv) {
|
||||||
int argsCount = Platform_GetCommandLineArgs(argc, argv, args);
|
int argsCount = Platform_GetCommandLineArgs(argc, argv, args);
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
/* NOTE: Make sure to comment this out before pushing a commit */
|
/* NOTE: Make sure to comment this out before pushing a commit */
|
||||||
//cc_string rawArgs = String_FromConst("UnknownShadow200 fffff 127.0.0.1 25565");
|
cc_string rawArgs = String_FromConst("UnknownShadow200 fffff 127.0.0.1 25565");
|
||||||
//cc_string rawArgs = String_FromConst("UnknownShadow200");
|
//cc_string rawArgs = String_FromConst("UnknownShadow200");
|
||||||
//argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (argsCount == 0) {
|
if (argsCount == 0) {
|
||||||
|
|
Loading…
Reference in a new issue