You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

73 lines
1.8 KiB
C

/*
* This comment is generated by the RCS co command:
* $Id: //RenderWare/RW37Active/rwsdk/os/win/osintf.h#1 $
* <file name> <rev> <date & time> <author> <state> <currently locked by>
*/
#ifndef _OSINTF_H
#define _OSINTF_H
/**********************************************************************
* File: osintf.h
*
* Abstract: Code to provide a device independent interface between
* RenderWare and the host operating system. Currently,
* only a minimal set of functions are implemented here.
* These should be added to over time.
*
**********************************************************************/
#include "batypes.h"
#ifdef UNDER_CE
#include <stdarg.h>
#else /* UNDER_CE */
#include <stdio.h>
#endif /* UNDER_CE */
/**********************************************************************/
/* OS independent filename handling */
#define SLASH '\\'
/* Do the TRUE/FALSE thing */
#ifdef FALSE
#undef FALSE
#endif
#define FALSE 0
#ifdef TRUE
#undef TRUE
#endif
#define TRUE !FALSE
#define RwIsAlpha(_c) \
( ( ((_c)>='A') && ((_c)<='Z') ) || \
( ((_c)>='a') && ((_c)<='z') ) )
/**********************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
/* Test whether a filepath is absolute or relative. */
RWEXPORT int RWAPI _rwpathisabsolute (const RwChar *path);
/* Get current time string */
RWEXPORT RwChar* RWAPI _rwgetcurrenttime(RwChar *buffer, RwInt32 bufSiz);
#ifdef __cplusplus
}
#endif /* __cplusplus */
/**********************************************************************
* End of file.
*
**********************************************************************/
#endif /* _OSINTF_H */