/******************************************************************************/
/*!
    Copyright 2012 Electronic Arts Inc.

    \file       version.h

    \brief      Provides macros for obtaining the package version
*/
/******************************************************************************/

#ifndef EABASETYPES_VERSION_H
#define EABASETYPES_VERSION_H

// Each version segment should fit into a single unsigned byte (0-255)
#define EABASETYPES_VERSION_MAJOR 1
#define EABASETYPES_VERSION_MAJOR_REVISION 7
#define EABASETYPES_VERSION_MINOR 0
#define EABASETYPES_VERSION_MINOR_REVISION 0

#define EABASETYPES_VERSION (((EABASETYPES_VERSION_MAJOR & 0xff) << 24) | ((EABASETYPES_VERSION_MAJOR_REVISION & 0xff) << 16) | ((EABASETYPES_VERSION_MINOR & 0xff) << 8) | (EABASETYPES_VERSION_MINOR_REVISION & 0xff))

#define EABASETYPES_VERSION_AT_LEAST(major, majorRev, minor, minorRev) (EABASETYPES_VERSION >= ((major << 24) | (majorRev << 16) | (minor << 8) | minorRev))

#endif // EABASETYPES_VERSION_H
