Skip to content

Conversation

@reborn2266
Copy link
Contributor

the order of headers should not affect the compilation.
if no stddef.h in queue.h, we might have the error when adjusting
the order:

In file included from queue.c:2:
./queue.h:73:42: error: unknown type name 'size_t'
bool q_remove_head(queue_t *q, char *sp, size_t bufsize);

the order of headers should not affect the compilation.
if no stddef.h in queue.h, we would have when adjusting
the order:

In file included from queue.c:2:
./queue.h:73:42: error: unknown type name 'size_t'
bool q_remove_head(queue_t *q, char *sp, size_t bufsize);
@reborn2266 reborn2266 requested a review from jserv January 30, 2020 08:26
@jserv jserv merged commit 84a07f2 into sysprog21:master Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants