-#define __statement __extension__ // To compile for Android/X86 (Need to add support to eC)
- // Also had to add __extension__ to __swap16md macro in endian.h
+#ifdef __statement
+#undef __statement
+#endif
+#define __statement(x) __extension__(x) // To compile for Android/X86 (Need to add support to eC)
+ // Also had to add __extension__ to __swap16md macro in endian.h
namespace net;
#ifndef ECERE_NONET
import "network"
+#ifdef __ANDROID__
+// TOFIX:
+#undef ntohs
+#undef htons
+#define ntohs(x) (x)
+#define htons(x) (x)
+#endif
+
public class Service
{
public: