mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-07 07:24:21 +00:00
Windows: Added build.xml.mingw for building with mingw compiler. Doesn't work yet since the RawInput API is not supported through mingw yet.
This commit is contained in:
parent
f0737680fa
commit
e5b009c563
4 changed files with 87 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ static jstring sprintfJavaString(JNIEnv *env, const char *format, va_list ap) {
|
|||
#define BUFFER_SIZE 4000
|
||||
char buffer[BUFFER_SIZE];
|
||||
jstring str;
|
||||
#ifdef _WIN32
|
||||
#ifdef _MSC_VER
|
||||
vsnprintf_s(buffer, BUFFER_SIZE, _TRUNCATE, format, ap);
|
||||
#else
|
||||
vsnprintf(buffer, BUFFER_SIZE, format, ap);
|
||||
|
|
|
|||
|
|
@ -40,6 +40,11 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <jni.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <Basetsd.h>
|
||||
#else
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
extern void printfJava(JNIEnv *env, const char *format, ...);
|
||||
extern void throwRuntimeException(JNIEnv * env, const char *format, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue