src/java.base/share/native/libjli/splashscreen_stubs.c
Print this page
*** 22,31 ****
--- 22,37 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <stdio.h>
+ #ifdef __WINDOWS__
+ # include <stddef.h>
+ #else
+ # include <stdint.h>
+ #endif
+
#include "splashscreen.h"
extern void* SplashProcAddress(const char* name); /* in java_md.c */
/*
*** 55,65 ****
static void* proc = NULL; \
if (!proc) { proc = SplashProcAddress(#name); } \
if (!proc) { return def; } \
ret ((name##_t)proc)
! #define INVOKE(name,def) _INVOKE(name,def,return)
#define INVOKEV(name) _INVOKE(name, ,;)
int DoSplashLoadMemory(void* pdata, int size) {
INVOKE(SplashLoadMemory, NULL)(pdata, size);
}
--- 61,72 ----
static void* proc = NULL; \
if (!proc) { proc = SplashProcAddress(#name); } \
if (!proc) { return def; } \
ret ((name##_t)proc)
! #define INVOKE(name,def) _INVOKE(name,((intptr_t) def),return)
! #define INVOKEP(name,def) _INVOKE(name,def,return)
#define INVOKEV(name) _INVOKE(name, ,;)
int DoSplashLoadMemory(void* pdata, int size) {
INVOKE(SplashLoadMemory, NULL)(pdata, size);
}
*** 84,90 ****
INVOKEV(SplashSetScaleFactor)(scaleFactor);
}
char* DoSplashGetScaledImageName(const char* fileName, const char* jarName,
float* scaleFactor) {
! INVOKE(SplashGetScaledImageName, NULL)(fileName, jarName, scaleFactor);
}
\ No newline at end of file
--- 91,98 ----
INVOKEV(SplashSetScaleFactor)(scaleFactor);
}
char* DoSplashGetScaledImageName(const char* fileName, const char* jarName,
float* scaleFactor) {
! INVOKEP(SplashGetScaledImageName, NULL)(fileName, jarName, scaleFactor);
}
+