/*--------------------------------------------------------------------------
  Project:  Manual 2D Library - m2d
  File:     version.h

  Copyright (C)2007-2009 Nintendo  All Rights Reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., and are protected by Federal copyright law.  They may
  not be disclosed to third parties or copied or duplicated in any form,
  in whole or in part, without the prior written consent of Nintendo.

  $Revision: 2012 $
 *-------------------------------------------------------------------------*/


#ifndef NTMV_M2D_VERSION_H_
#define NTMV_M2D_VERSION_H_

#define NTMV_MANUALVIEWER_VERSION     0x03000100


#define NTMV_MANUALVIEWER_VERSION_MAJOR_SHIFT     24
#define NTMV_MANUALVIEWER_VERSION_MINOR_SHIFT     16
#define NTMV_MANUALVIEWER_VERSION_RELSTEP_SHIFT    8
#define NTMV_MANUALVIEWER_VERSION_PRIVATE_SHIFT    0

#define NTMV_MANUALVIEWER_VERSION_MAJOR   ((NTMV_MANUALVIEWER_VERSION >> NTMV_MANUALVIEWER_VERSION_MAJOR_SHIFT)   & 0xFF)
#define NTMV_MANUALVIEWER_VERSION_MINOR   ((NTMV_MANUALVIEWER_VERSION >> NTMV_MANUALVIEWER_VERSION_MINOR_SHIFT)   & 0xFF)
#define NTMV_MANUALVIEWER_VERSION_RELSTEP ((NTMV_MANUALVIEWER_VERSION >> NTMV_MANUALVIEWER_VERSION_RELSTEP_SHIFT) & 0xFF)
#define NTMV_MANUALVIEWER_VERSION_PRIVATE ((NTMV_MANUALVIEWER_VERSION >> NTMV_MANUALVIEWER_VERSION_PRIVATE_SHIFT) & 0xFF)


#if (NTMV_MANUALVIEWER_VERSION_PRIVATE == 0)
#define NTMV_MANUALVIEWER_VERSION_FORMAT    "%u.%u.%u%s", NTMV_MANUALVIEWER_VERSION_MAJOR, NTMV_MANUALVIEWER_VERSION_MINOR, NTMV_MANUALVIEWER_VERSION_RELSTEP
#else
#define NTMV_MANUALVIEWER_VERSION_FORMAT    "%u.%u.%u.%u%s", NTMV_MANUALVIEWER_VERSION_MAJOR, NTMV_MANUALVIEWER_VERSION_MINOR, NTMV_MANUALVIEWER_VERSION_RELSTEP, NTMV_MANUALVIEWER_VERSION_PRIVATE
#endif

/* NTMV_M2D_VERSION_H_ */
#endif
