forward declarations for struct monst, struct obj
This should eliminate the 'onefile' complaint for objects.c without breaking anything with any standard conforming compiler. (Fingers crossed.)
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
#ifndef MONST_H
|
||||
#define MONST_H
|
||||
|
||||
/* start with incomplete types in case these aren't defined yet;
|
||||
basic pointers to them don't need to know their details */
|
||||
struct monst;
|
||||
struct obj;
|
||||
|
||||
#ifndef MEXTRA_H
|
||||
#include "mextra.h"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user