Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Windows build fixes #528

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion test/jdk/java/foreign/libStdLibTest.c
Expand Up @@ -21,7 +21,17 @@
* questions.
*/

#include "libStdLibTest.h"
#ifdef _WIN64
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

EXPORT char *libc_strcat(char *str1, const char *str2) {
return strcat(str1, str2);
Expand Down
44 changes: 0 additions & 44 deletions test/jdk/java/foreign/libStdLibTest.h

This file was deleted.

Expand Up @@ -49,5 +49,5 @@ EXPORT void* malloc_raw(size_t size) {
}

EXPORT void free_raw(void* ptr) {
return free(ptr);
free(ptr);
}