json-c/json-c — pull request #29 by mloskot (2012-05-21 22:27:23+00:00)
Title: Replaced #if HAVE_X with #ifdef HAVE_X as the former test is troublemaker

...with #define HAVE_X where #define HAVE_X 1|0 is meant.

The problem is the following preprocessor define

```#define HAVE_STDARG_H```

and related test

```
#if HAVE_STDARG_H
# include
#else /* !HAVE_STDARG_H */
# error Not enough var arg support!
#endif /* HAVE_STDARG_H */
```

Such tests require explicit ```#define HAVE_STDARG_H 0``` or ```#define HAVE_STDARG_H 1```.

The submission is non-intrusive change and it would help a lot especially with Visual C++ port.