Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c07017d

Browse files
author
Monte Goulding
committed
Had an issue with __IPHONE_4_0 being defined in an OS X external and fixed an issue when writing parameters for C etc functions
1 parent 9f2cbd4 commit c07017d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lcidlc/include/LiveCode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ LCError LCPostBlockOnMainThread(unsigned int options, void (^callback)(void));
13711371

13721372
////////////////////////////////////////////////////////////////////////////////
13731373

1374-
#if defined(__IPHONE_4_0) && defined(__OBJC__)
1374+
#if defined(__OBJC__) && TARGET_OS_IPHONE
13751375

13761376
#import <UIKit/UIKit.h>
13771377

lcidlc/src/InterfaceGenerate.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,11 @@ static void InterfaceGenerateVariant(InterfaceRef self, CoderRef p_coder, Handle
12511251
CoderWrite(p_coder, "%s(", NameGetCString(t_variant -> binding));
12521252

12531253
for(uint32_t k = 0; k < p_variant -> parameter_count; k++)
1254-
CoderWrite(p_coder, ", %s", t_mapped_params[k] . var_name);
1254+
{
1255+
if (k != 0)
1256+
CoderWrite(p_coder, ", ", t_mapped_params[k] . var_name);
1257+
CoderWrite(p_coder, "%s", t_mapped_params[k] . var_name);
1258+
}
12551259

12561260
CoderWrite(p_coder, ")");
12571261

0 commit comments

Comments
 (0)