Add MAKE_SEMANTIC_VERSION macro

This commit is contained in:
jp9000 2014-07-13 23:55:46 -07:00
parent a98dfe507f
commit f801348a33

View File

@ -43,9 +43,15 @@
*/
#define LIBOBS_API_PATCH_VER 0
#define LIBOBS_API_VER ((LIBOBS_API_MAJOR_VER << 24) | \
(LIBOBS_API_MINOR_VER << 16) | \
LIBOBS_API_PATCH_VER )
#define MAKE_SEMANTIC_VERSION(major, minor, patch) \
((major << 24) | \
(minor << 16) | \
patch )
#define LIBOBS_API_VER \
MAKE_SEMANTIC_VERSION(LIBOBS_API_MAJOR_VER, \
LIBOBS_API_MINOR_VER, \
LIBOBS_API_PATCH_VER)
#ifdef HAVE_OBSCONFIG_H
# include "obsconfig.h"