worked on premove bug
[xboard.git] / uci.c
diff --git a/uci.c b/uci.c
index e63fb02..d0f76c4 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -3,25 +3,31 @@
  *
  * Author: Alessandro Scotti (Jan 2006)
  *
+ * Copyright 2006 Alessandro Scotti
+ *
  * ------------------------------------------------------------------------
- * This program is free software; you can redistribute it and/or modify
+ *
+ * GNU XBoard is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation, either version 3 of the License, or (at
+ * your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * GNU XBoard is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * along with this program. If not, see http://www.gnu.org/licenses/. 
+ *
  * ------------------------------------------------------------------------
  */
 #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