mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Merge pull request #362 from dicej/master
StringWriter.getBuffer, System.mapLibraryName, and makefile cleanup
This commit is contained in:
commit
adca99b0ae
@ -46,7 +46,7 @@
|
||||
|
||||
#define SO_PREFIX "lib"
|
||||
#ifdef __APPLE__
|
||||
#define SO_SUFFIX ".jnilib"
|
||||
#define SO_SUFFIX ".dylib"
|
||||
#include <TargetConditionals.h>
|
||||
#if !TARGET_IPHONE_SIMULATOR && !TARGET_OS_IPHONE
|
||||
#include <CoreServices/CoreServices.h>
|
||||
|
@ -11,7 +11,7 @@
|
||||
package java.io;
|
||||
|
||||
public class StringWriter extends Writer {
|
||||
private final StringBuilder out = new StringBuilder();
|
||||
private final StringBuffer out = new StringBuffer();
|
||||
|
||||
public void write(char[] b, int offset, int length) throws IOException {
|
||||
out.append(b, offset, length);
|
||||
@ -24,4 +24,8 @@ public class StringWriter extends Writer {
|
||||
public void flush() throws IOException { }
|
||||
|
||||
public void close() throws IOException { }
|
||||
|
||||
public StringBuffer getBuffer() {
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
2
makefile
2
makefile
@ -67,7 +67,7 @@ ifeq ($(filter x86_64 i386 arm,$(arch)),)
|
||||
endif
|
||||
|
||||
ifeq ($(platform),darwin)
|
||||
x := $(error "please use 'platform=macosx' or 'platform=ios' instead of 'platform=$platform'")
|
||||
x := $(error "please use 'platform=macosx' or 'platform=ios' instead of 'platform=$(platform)'")
|
||||
endif
|
||||
|
||||
ifneq ($(ios),)
|
||||
|
Loading…
Reference in New Issue
Block a user