summaryrefslogtreecommitdiffstatshomepage
path: root/src/build
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2011-01-18 23:05:21 +0000
committer Couriersud <couriersud@users.noreply.github.com>2011-01-18 23:05:21 +0000
commit7f400e73935eb2f7f13c7fc7c3a24aed6bcda217 (patch)
treed4c4b0640f540a00b8061efbed8a94920fe7e276 /src/build
parentadce78fbe266394993761fc275419217d46683b3 (diff)
Fix a bug in makedep which will caused includes on the first line of the file like in skyraid.h to be ignored. [Couriersud]
Diffstat (limited to 'src/build')
-rw-r--r--src/build/makedep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/build/makedep.c b/src/build/makedep.c
index 8f9fc7230be..743198cb84d 100644
--- a/src/build/makedep.c
+++ b/src/build/makedep.c
@@ -435,12 +435,16 @@ static file_entry *compute_dependencies(int srcrootlen, const astring *srcfile)
int scan = index;
dependency *dep;
int start;
+ int just_continue = 0;
/* first make sure we're not commented or quoted */
for (scan = index; scan > 2 && filedata[scan] != 13 && filedata[scan] != 10; scan--)
if ((filedata[scan] == '/' && filedata[scan - 1] == '/') || filedata[scan] == '"')
+ {
+ just_continue = 1;
break;
- if (filedata[scan] != 13 && filedata[scan] != 10)
+ }
+ if (just_continue)
continue;
/* scan forward to find the quotes or bracket */