nulib2/nufxlib-0/Version.c.in
2003-02-09 03:16:41 +00:00

43 lines
1.2 KiB
C

/*
* NuFX archive manipulation library
* Copyright (C) 2000-2003 by Andy McFadden, All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the GNU Library General Public License, see the file COPYING-LIB.
*
* !!! NOTE !!!
* The file Version.c is automatically generated from Version.c.in. Don't
* edit the .c file if you want your changes to be permanent.
*/
#include "NufxLibPriv.h"
/* executable was build on or after this date (inserted automatically) */
#ifdef __DATE__
static const char gNuBuildDate[] = __DATE__;
#else
static const char gNuBuildDate[] = "BUILT";
#endif
static const char gNuBuildFlags[] = "OPTFLAGS";
/*
* Return the version number, date built, and build flags.
*/
NuError
Nu_GetVersion(long* pMajorVersion, long* pMinorVersion, long* pBugVersion,
const char** ppBuildDate, const char** ppBuildFlags)
{
if (pMajorVersion != nil)
*pMajorVersion = kNuVersionMajor;
if (pMinorVersion != nil)
*pMinorVersion = kNuVersionMinor;
if (pBugVersion != nil)
*pBugVersion = kNuVersionBug;
if (ppBuildDate != nil)
*ppBuildDate = gNuBuildDate;
if (ppBuildFlags != nil)
*ppBuildFlags = gNuBuildFlags;
return kNuErrNone;
}