Make Windows cross compile again

But this is broken as the utf8/utf16 conversions in windows.c are gone
without glib.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-10-06 21:04:25 -07:00
parent 34db6dc2be
commit 475e058d40
5 changed files with 39 additions and 18 deletions

14
dive.h
View file

@ -5,7 +5,19 @@
#include <stdint.h>
#include <time.h>
#include <math.h>
#include <sys/param.h>
/* Windows has no MIN/MAX macros - so let's just roll our own */
#define MIN(x, y) ({ \
typeof(x) _min1 = (x); \
typeof(y) _min2 = (y); \
(void) (&_min1 == &_min2); \
_min1 < _min2 ? _min1 : _min2; })
#define MAX(x, y) ({ \
typeof(x) _max1 = (x); \
typeof(y) _max2 = (y); \
(void) (&_max1 == &_max2); \
_max1 > _max2 ? _max1 : _max2; })
#include <libxml/tree.h>
#include <libxslt/transform.h>