-
-
Save JonathonReinhart/b45a5d2db70a9950265fde7f325b37f0 to your computer and use it in GitHub Desktop.
Circular includes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef A_DOT_H_INCLUDED | |
#define A_DOT_H_INCLUDED | |
#include "b.h" | |
struct a | |
{ | |
struct b *b; | |
}; | |
#endif /* A_DOT_H_INCLUDED */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef B_DOT_H_INCLUDED | |
#define B_DOT_H_INCLUDED | |
#include "a.h" | |
struct b | |
{ | |
struct a *a; | |
}; | |
#endif /* B_DOT_H_INCLUDED */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "a.h" | |
int main(void) | |
{ | |
struct a a; | |
(void) a; | |
return 0; | |
} |
Author
JonathonReinhart
commented
Oct 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment