Browse Source

public: move build.c from engine to public library, in preparation of filesystem_stdio merge

pull/2/head
Alibek Omarov 2 years ago
parent
commit
12ea6dcfd7
  1. 10
      engine/common/common.h
  2. 2
      public/build.c
  3. 9
      public/crtlib.h

10
engine/common/common.h

@ -667,16 +667,6 @@ void FS_FreeStream( stream_t *stream ); @@ -667,16 +667,6 @@ void FS_FreeStream( stream_t *stream );
qboolean Sound_Process( wavdata_t **wav, int rate, int width, uint flags );
uint Sound_GetApproxWavePlayLen( const char *filepath );
//
// build.c
//
int Q_buildnum( void );
int Q_buildnum_compat( void );
const char *Q_buildos( void );
const char *Q_buildarch( void );
const char *Q_buildcommit( void );
//
// host.c
//

2
engine/common/build.c → public/build.c

@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#include "common.h"
#include "crtlib.h"
static const char *date = __DATE__ ;
static const char *mon[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };

9
public/crtlib.h

@ -44,6 +44,15 @@ enum @@ -44,6 +44,15 @@ enum
#define PFILE_TOKEN_MAX_LENGTH 1024
#define PFILE_FS_TOKEN_MAX_LENGTH 512
//
// build.c
//
int Q_buildnum( void );
int Q_buildnum_compat( void );
const char *Q_buildos( void );
const char *Q_buildarch( void );
const char *Q_buildcommit( void );
//
// crtlib.c
//

Loading…
Cancel
Save