2009-08-26 10:25:24 +03:00
|
|
|
Index: uClibc-0.9.30.1/extra/scripts/unifdef.c
|
|
|
|
===================================================================
|
|
|
|
--- uClibc-0.9.30.1.orig/extra/scripts/unifdef.c 2008-04-28 01:10:00.000000000 +0200
|
|
|
|
+++ uClibc-0.9.30.1/extra/scripts/unifdef.c 2009-08-25 15:20:08.000000000 +0200
|
|
|
|
@@ -206,7 +206,11 @@
|
2009-05-28 18:49:29 +03:00
|
|
|
static void error(const char *);
|
|
|
|
static int findsym(const char *);
|
|
|
|
static void flushline(bool);
|
|
|
|
-static Linetype getline(void);
|
2009-08-26 10:25:24 +03:00
|
|
|
+#ifndef __CYGWIN__
|
2009-05-28 18:49:29 +03:00
|
|
|
+static Linetype __getline(void);
|
2009-08-26 10:25:24 +03:00
|
|
|
+#else
|
|
|
|
+static Linetype get_line(void);
|
|
|
|
+#endif
|
2009-05-28 18:49:29 +03:00
|
|
|
static Linetype ifeval(const char **);
|
|
|
|
static void ignoreoff(void);
|
|
|
|
static void ignoreon(void);
|
2009-08-26 10:25:24 +03:00
|
|
|
@@ -512,7 +516,11 @@
|
2009-05-28 18:49:29 +03:00
|
|
|
|
|
|
|
for (;;) {
|
|
|
|
linenum++;
|
|
|
|
- lineval = getline();
|
2009-08-26 10:25:24 +03:00
|
|
|
+#ifndef __CYGWIN__
|
2009-05-28 18:49:29 +03:00
|
|
|
+ lineval = __getline();
|
2009-08-26 10:25:24 +03:00
|
|
|
+#else
|
|
|
|
+ lineval = get_line();
|
|
|
|
+#endif
|
2009-05-28 18:49:29 +03:00
|
|
|
trans_table[ifstate[depth]][lineval]();
|
|
|
|
debug("process %s -> %s depth %d",
|
|
|
|
linetype_name[lineval],
|
2009-08-26 10:25:24 +03:00
|
|
|
@@ -526,7 +534,11 @@
|
2009-05-28 18:49:29 +03:00
|
|
|
* help from skipcomment().
|
|
|
|
*/
|
|
|
|
static Linetype
|
|
|
|
-getline(void)
|
2009-08-26 10:25:24 +03:00
|
|
|
+#ifndef __CYGWIN__
|
2009-05-28 18:49:29 +03:00
|
|
|
+__getline(void)
|
2009-08-26 10:25:24 +03:00
|
|
|
+#else
|
|
|
|
+get_line(void)
|
|
|
|
+#endif
|
2009-05-28 18:49:29 +03:00
|
|
|
{
|
|
|
|
const char *cp;
|
|
|
|
int cursym;
|