[USETUP] Make the "SpApiSup" files usable from e.g. the GUI setup.

This commit is contained in:
Hermès Bélusca-Maïto 2023-12-23 18:45:59 +01:00
parent 864aed6bcd
commit bff31569e6
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 10 additions and 0 deletions

View file

@ -8,7 +8,9 @@
* CSH 15/08-2003 Created
*/
#ifndef _USETUP_PCH_
#include "usetup.h"
#endif
#define Z_SOLO
#include <zlib.h>
@ -136,6 +138,8 @@ typedef struct _CFDATA
/* FUNCTIONS ****************************************************************/
#if !defined(_INC_MALLOC) && !defined(_INC_STDLIB)
/* Needed by zlib, but we don't want the dependency on the CRT */
void *__cdecl
malloc(size_t size)
@ -155,6 +159,8 @@ calloc(size_t nmemb, size_t size)
return (void *)RtlAllocateHeap(ProcessHeap, HEAP_ZERO_MEMORY, nmemb * size);
}
#endif // !_INC_MALLOC && !_INC_STDLIB
/* Codecs */

View file

@ -27,7 +27,9 @@
/* INCLUDES *****************************************************************/
#ifndef _USETUP_PCH_
#include "usetup.h"
#endif
#define NDEBUG
#include <debug.h>

View file

@ -27,7 +27,9 @@
/* INCLUDES ******************************************************************/
#ifndef _USETUP_PCH_
#include "usetup.h"
#endif
#define NDEBUG
#include <debug.h>