Remove EXTERN_C macros and use block based solution

Related issue: #900

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2016-02-18 11:34:51 +00:00
parent b2edaafaa1
commit a0bedaa43d
14 changed files with 140 additions and 206 deletions
+6 -4
View File
@@ -18,9 +18,8 @@
#define JERRY_LIBC_TIME_H
#ifdef __cplusplus
# define EXTERN_C "C"
#else /* !__cplusplus */
# define EXTERN_C
extern "C"
{
#endif /* !__cplusplus */
/**
@@ -41,6 +40,9 @@ struct timezone
int tz_dsttime; /**< type of DST correction */
};
extern EXTERN_C int gettimeofday (void *tp, void *tzp);
int gettimeofday (void *tp, void *tzp);
#ifdef __cplusplus
}
#endif /* !__cplusplus */
#endif /* !JERRY_LIBC_TIME_H */