< prev index next >
jdk/src/java.base/share/native/launcher/defines.h
Print this page
*** 26,46 ****
#ifndef _DEFINES_H
#define _DEFINES_H
#include "java.h"
/*
* This file contains commonly defined constants used only by main.c
* and should not be included by another file.
*/
! #ifndef FULL_VERSION
/* make sure the compilation fails */
! #error "FULL_VERSION must be defined"
#endif
! #if defined(JDK_MAJOR_VERSION) && defined(JDK_MINOR_VERSION)
! #define DOT_VERSION JDK_MAJOR_VERSION "." JDK_MINOR_VERSION
#else
/* make sure the compilation fails */
#error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined"
#endif
--- 26,49 ----
#ifndef _DEFINES_H
#define _DEFINES_H
#include "java.h"
+ #define STR_HELPER(x) #x
+ #define STR(x) STR_HELPER(x)
+
/*
* This file contains commonly defined constants used only by main.c
* and should not be included by another file.
*/
! #ifndef VERSION_STRING
/* make sure the compilation fails */
! #error "VERSION_STRING must be defined"
#endif
! #if defined(VERSION_MAJOR) && defined(VERSION_MINOR)
! #define DOT_VERSION STR(VERSION_MAJOR) "." STR(VERSION_MINOR)
#else
/* make sure the compilation fails */
#error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined"
#endif
< prev index next >