Accept higher vers. nums in make_version/MAKE_VERSION
This commit is contained in:
@@ -77,7 +77,7 @@ endmacro(add_list_string_option)
|
|||||||
function(make_version VERSION_VALUE)
|
function(make_version VERSION_VALUE)
|
||||||
math(EXPR RESULT "0")
|
math(EXPR RESULT "0")
|
||||||
foreach (ARG ${ARGN})
|
foreach (ARG ${ARGN})
|
||||||
math(EXPR RESULT "${RESULT} * 16 + ${ARG}")
|
math(EXPR RESULT "${RESULT} * 256 + ${ARG}")
|
||||||
endforeach()
|
endforeach()
|
||||||
set(${VERSION_VALUE} "${RESULT}" PARENT_SCOPE)
|
set(${VERSION_VALUE} "${RESULT}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|||||||
@@ -23,6 +23,6 @@
|
|||||||
#define __openair_TYPES_H__
|
#define __openair_TYPES_H__
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#define MAKE_VERSION(a,b,c) ((a)*256+(b)*16+c)
|
#define MAKE_VERSION(a,b,c) ((a)*65536+(b)*256+c)
|
||||||
|
|
||||||
#endif /*__openair_TYPES_H__ */
|
#endif /*__openair_TYPES_H__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user