#pragma once

#define LIBOSMO_E1D_VERSION {{VERSION}}
#define LIBOSMO_E1D_VERSION_STR "{{VERSION}}"

#define LIBOSMO_E1D_VERSION_MAJOR {{VERSION_MAJOR}}
#define LIBOSMO_E1D_VERSION_MINOR {{VERSION_MINOR}}
#define LIBOSMO_E1D_VERSION_PATCH {{VERSION_PATCH}}

#define LIBOSMO_E1D_VERSION_GREATER_EQUAL(major, minor, patch) \
	(LIBOSMO_E1D_VERSION_MAJOR > (major) || \
	 (LIBOSMO_E1D_VERSION_MAJOR == (major) && \
	  LIBOSMO_E1D_VERSION_MINOR > (minor)) || \
	 (LIBOSMO_E1D_VERSION_MAJOR == (major) && \
	  LIBOSMO_E1D_VERSION_MINOR == (minor) && \
	  LIBOSMO_E1D_VERSION_PATCH >= (patch)))
