Generate version string based on version components
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user