mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-01 01:27:20 +01:00
0b14f9a446
- version.h is now static (should increase on new releases) - if compiler flag is passed, will try to use version_auto.h (autogen) (auto only on compiler flag to avoid include'ing a non-existant file) - avoid clobbered version.h as may force recompiles
19 lines
670 B
C
19 lines
670 B
C
#ifndef _VGMSTREAM_H_
|
|
#define _VGMSTREAM_H_
|
|
/* autogenerated version passed by param */
|
|
//todo detect if VGMSTREAM_VERSION is "" (may happen on script error)
|
|
#ifndef VGMSTREAM_VERSION
|
|
/* autogenerated version on file */
|
|
#ifdef VGMSTREAM_VERSION_AUTO
|
|
#include "version_auto.h"
|
|
#else
|
|
/* Static/fallback version.
|
|
* Version is autogenerated from Git (passed via compiler args, or updated with scripts), but this file is
|
|
* for Git-less builds (not installed or downloaded master) and builds that don't do the above should still work
|
|
* (compiling a well-behaved src shouldn't depend on calling arbitrary scripts). */
|
|
#define VGMSTREAM_VERSION "r1050"
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|