Mercurial > hg > octave-nkf
diff libinterp/version.in.h @ 18228:b6b6e0dc700e stable
provide version number macros (bug #41045)
* configure.ac (OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION,
OCTAVE_PATCH_VERSION): New variables.
* common.mk: Substitute them.
* version.in.h: Substitute them.
* libinterp/Makefile.am (version.h):
Don't substitute OCTAVE_API_VERSION_NUMBER.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 07 Jan 2014 11:36:21 -0500 |
parents | 6e43fbab4b29 |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/libinterp/version.in.h +++ b/libinterp/version.in.h @@ -26,6 +26,20 @@ #define OCTAVE_VERSION %OCTAVE_VERSION% +#define OCTAVE_MAJOR_VERSION %OCTAVE_MAJOR_VERSION% + +#define OCTAVE_MINOR_VERSION %OCTAVE_MINOR_VERSION% + +#define OCTAVE_PATCH_VERSION %OCTAVE_PATCH_VERSION% + +// The "API version" is used as a way of checking that interfaces in the +// liboctave and libinterp libraries haven't changed in a backwardly +// incompatible way when loading .oct files. A better way to do that is +// with library versioning, but not all systems support that. +// NOTE: This macro will be removed in a future version of Octave. If +// you insist on checking for features using a version number, use the +// OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION, and +// OCTAVE_PATCH_VERSION macros instead. #define OCTAVE_API_VERSION %OCTAVE_API_VERSION% #define OCTAVE_RELEASE_DATE %OCTAVE_RELEASE_DATE%