nulib2/nufxlib-0/Version.c.in

39 lines
1.2 KiB
C
Raw Normal View History

2000-05-23 01:55:31 +00:00
/*
* NuFX archive manipulation library
2002-10-11 20:15:50 +00:00
* Copyright (C) 2000-2002 by Andy McFadden, All Rights Reserved.
2000-05-23 01:55:31 +00:00
* This is free software; you can redistribute it and/or modify it under the
2002-10-11 20:15:50 +00:00
* terms of the GNU Library General Public License, see the file COPYING-LIB.
2000-05-23 01:55:31 +00:00
*
* !!! 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) */
/* (some compilers e.g. MSC have __DATE__; use that?) */
static const char gNuBuildDate[] = "BUILT"; /* approximate */
2000-05-23 01:55:31 +00:00
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)
2000-05-23 01:55:31 +00:00
{
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;
2000-05-23 01:55:31 +00:00
}