Skip to content

Commit

Permalink
Fix example on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed May 5, 2020
1 parent b7277af commit d1f1492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hawtjni-example/src/main/java/test/ObjectiveCExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ public static final void main(String args[]) {
@JniMethod(cast="id", flags={POINTER_RETURN})
public static final native long objc_getClass(String className);

@JniMethod(cast="id", flags={POINTER_RETURN}, accessor="objc_msgSend")
@JniMethod(cast="id", flags={POINTER_RETURN}, accessor="reinterpret_cast<id (*)(id, SEL)> (objc_msgSend)")
public static final native long $(
@JniArg(cast="id", flags={POINTER_ARG})long id,
@JniArg(cast="SEL", flags={POINTER_ARG})long sel
);

@JniMethod(cast="id", flags={POINTER_RETURN}, accessor="objc_msgSend")
@JniMethod(cast="id", flags={POINTER_RETURN}, accessor="reinterpret_cast<id (*)(id, SEL, const char*)> (objc_msgSend)")
public static final native long $(
@JniArg(cast="id", flags={POINTER_ARG})long id,
@JniArg(cast="SEL", flags={POINTER_ARG})long sel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

ACLOCAL_AMFLAGS = -I m4

AM_CXXFLAGS = -std=gnu++11

lib_LTLIBRARIES = lib@PROJECT_NAME@.la
# lib@PROJECT_NAME_UNDER_SCORE@_la_CFLAGS =
#lib@PROJECT_NAME_UNDER_SCORE@_la_LDFLAGS =
Expand Down

0 comments on commit d1f1492

Please sign in to comment.