|
|
发表于 2005-5-15 16:34:03
|
显示全部楼层
Here is an example:
- #ifndef EXAMPLE_H__
- #define EXAMPLE_H__
- struct example {
- int value;
- struct example *next;
- };
- #endif /* EXAMPLE_H__ */
复制代码
As you see, the first time including this file will define a preprocessor macro EXAMPLE_H__, which will prevent the structure definition being included for the second time. |
|