Generate version string based on version components

This commit is contained in:
Ryan Pavlik
2010-11-11 12:38:17 -06:00
parent 29a42208fa
commit 0369a148de

View File

@@ -53,9 +53,6 @@
#include <stdint.h>
/* wiiuse version */
#define WIIUSE_VERSION "0.12"
/********************
*
* Wiimote internal codes
@@ -212,6 +209,12 @@
#include "wiiuse.h"
#define _STRINGIFY(s) _STRINGIFY_IMPL(s)
#define _STRINGIFY_IMPL(s) #s
/* wiiuse version, from public per-component version defines */
#define WIIUSE_VERSION _STRINGIFY(WIIUSE_MAJOR) "." _STRINGIFY(WIIUSE_MINOR) "." _STRINGIFY(WIIUSE_MICRO)
#ifdef __cplusplus
extern "C" {
#endif