mirror of
https://github.com/fadden/ciderpress.git
synced 2024-11-27 08:49:20 +00:00
84706d7ea4
This integrates the latest NufxLib sources, and updates CiderPress to work with the API changes.
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/*
|
|
* NuFX archive manipulation library
|
|
* Copyright (C) 2000-2007 by Andy McFadden, All Rights Reserved.
|
|
* This is free software; you can redistribute it and/or modify it under the
|
|
* terms of the BSD License, see the file COPYING-LIB.
|
|
*/
|
|
#include "NufxLibPriv.h"
|
|
|
|
/* executable was build on or after this date */
|
|
#ifdef __DATE__
|
|
static const char gNuBuildDate[] = __DATE__;
|
|
#else
|
|
static const char gNuBuildDate[] = "??? ?? ????";
|
|
#endif
|
|
|
|
#ifdef OPTFLAGSTR
|
|
static const char gNuBuildFlags[] = OPTFLAGSTR;
|
|
#else
|
|
static const char gNuBuildFlags[] = "-";
|
|
#endif
|
|
|
|
|
|
/*
|
|
* Return the version number, date built, and build flags.
|
|
*/
|
|
NuError Nu_GetVersion(int32_t* pMajorVersion, int32_t* pMinorVersion,
|
|
int32_t* pBugVersion, const char** ppBuildDate, const char** ppBuildFlags)
|
|
{
|
|
if (pMajorVersion != NULL)
|
|
*pMajorVersion = kNuVersionMajor;
|
|
if (pMinorVersion != NULL)
|
|
*pMinorVersion = kNuVersionMinor;
|
|
if (pBugVersion != NULL)
|
|
*pBugVersion = kNuVersionBug;
|
|
if (ppBuildDate != NULL)
|
|
*ppBuildDate = gNuBuildDate;
|
|
if (ppBuildFlags != NULL)
|
|
*ppBuildFlags = gNuBuildFlags;
|
|
return kNuErrNone;
|
|
}
|
|
|