*
* Author: Alessandro Scotti (Jan 2006)
*
+ * Copyright 2006 Alessandro Scotti
+ *
* ------------------------------------------------------------------------
*
* GNU XBoard is free software: you can redistribute it and/or modify
*/
#include <stdio.h>
#include <stdlib.h>
-#include <malloc.h>
+
+#if HAVE_MALLOC_H
+ #include <malloc.h>
+#endif
#ifdef WIN32
// [HGM] this was probably a Windows-specific constant. Needs to be defined here now I