mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 04:45:55 +02:00
6acfb9dbbf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17402 3c298f89-4303-0410-b956-a3cf2f4a3e73
42 lines
1013 B
Diff
42 lines
1013 B
Diff
--- a/scripts/unifdef.c
|
|
+++ b/scripts/unifdef.c
|
|
@@ -206,7 +206,11 @@ static void done(void);
|
|
static void error(const char *);
|
|
static int findsym(const char *);
|
|
static void flushline(bool);
|
|
-static Linetype getline(void);
|
|
+#ifndef __CYGWIN__
|
|
+static Linetype __getline(void);
|
|
+#else
|
|
+static Linetype get_line(void);
|
|
+#endif
|
|
static Linetype ifeval(const char **);
|
|
static void ignoreoff(void);
|
|
static void ignoreon(void);
|
|
@@ -512,7 +516,11 @@ process(void)
|
|
|
|
for (;;) {
|
|
linenum++;
|
|
- lineval = getline();
|
|
+#ifndef __CYGWIN__
|
|
+ lineval = __getline();
|
|
+#else
|
|
+ lineval = get_line();
|
|
+#endif
|
|
trans_table[ifstate[depth]][lineval]();
|
|
debug("process %s -> %s depth %d",
|
|
linetype_name[lineval],
|
|
@@ -526,7 +534,11 @@ process(void)
|
|
* help from skipcomment().
|
|
*/
|
|
static Linetype
|
|
-getline(void)
|
|
+#ifndef __CYGWIN__
|
|
+__getline(void)
|
|
+#else
|
|
+get_line(void)
|
|
+#endif
|
|
{
|
|
const char *cp;
|
|
int cursym;
|