I can't figure this out...
I have object.h which looks like so
struct basicObject {
int x, y;
}
void objectSet (int x, int y);
Now I need to include object.h in my main file but I also need the objectSet function and struct in a different file called svg.c
svg.h looks like
#define OUTPUT_FILE "output.svg"
#include "object.h"
void saveSVG (basicObject item);
But my main file also includes svg.h! So I'm getting 'redifinition errors' of struct basicObject. This clearly has something to do object.h getting included twice. How can I fix this?
saveSVG, you'd needstruct basicObject.