#include and HAVE_CONFIG_H

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
BusError
Posts: 29
Joined: 07.03.2002
With us: 22 years 8 months

#include and HAVE_CONFIG_H

Post #1by BusError » 05.04.2002, 16:55

There is a rather common method of using -DHAVE_CONFIG_H on the command line compil to specify the config.h file exists.
right now it's:
#ifndef _WIN32
#include <config.h>
#endif /* _WIN32 */

And it's too bad, because if I want to compile using codewarrior on OSX, I don't have a config.h file, and it's also not _WIN32 :-)
Those should be replaced by:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */

And have the configure script add the -DHAVE_CONFIG_H to the compile line...

Return to “Development”