/****************************************************************************
- * Copyright (c) 2007 Free Software Foundation, Inc. *
+ * Copyright (c) 2007,2008 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* authorization. *
****************************************************************************/
/*
- * $Id: test_arrays.c,v 1.1 2007/08/18 18:02:35 tom Exp $
+ * $Id: test_arrays.c,v 1.3 2008/02/09 18:09:43 tom Exp $
*
* Author: Thomas E Dickey
*
*/
+#define USE_TINFO
#include <test.priv.h>
+#if defined(NCURSES_VERSION) || !defined(_XOPEN_CURSES)
+
#define DUMP(name) dump_array(#name, name)
static void
ExitProgram(EXIT_SUCCESS);
}
+
+#else
+int
+main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
+{
+ printf("This program requires the terminfo arrays\n");
+ ExitProgram(EXIT_FAILURE);
+}
+#endif