1262617Sdelphij/**************************************************************************** 2262617Sdelphij * Copyright (c) 2008-2009,2010 Free Software Foundation, Inc. * 3262617Sdelphij * * 4262617Sdelphij * Permission is hereby granted, free of charge, to any person obtaining a * 5262617Sdelphij * copy of this software and associated documentation files (the * 6262617Sdelphij * "Software"), to deal in the Software without restriction, including * 7262617Sdelphij * without limitation the rights to use, copy, modify, merge, publish, * 8262617Sdelphij * distribute, distribute with modifications, sublicense, and/or sell * 9262617Sdelphij * copies of the Software, and to permit persons to whom the Software is * 10262617Sdelphij * furnished to do so, subject to the following conditions: * 11262617Sdelphij * * 12262617Sdelphij * The above copyright notice and this permission notice shall be included * 13262617Sdelphij * in all copies or substantial portions of the Software. * 14262617Sdelphij * * 15262617Sdelphij * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 16262617Sdelphij * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 17262617Sdelphij * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 18262617Sdelphij * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 19262617Sdelphij * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 20262617Sdelphij * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 21262617Sdelphij * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 22262617Sdelphij * * 23262617Sdelphij * Except as contained in this notice, the name(s) of the above copyright * 24262617Sdelphij * holders shall not be used in advertising or otherwise to promote the * 25262617Sdelphij * sale, use or other dealings in this Software without prior written * 26262617Sdelphij * authorization. * 27262617Sdelphij ****************************************************************************/ 28262617Sdelphij 29262617Sdelphij/**************************************************************************** 30262617Sdelphij * Author: Thomas Dickey, 2008-on * 31262617Sdelphij * * 32262617Sdelphij ****************************************************************************/ 33262617Sdelphij 34262617Sdelphij/* $Id: nc_mingw.h,v 1.3 2010/09/25 22:16:12 juergen Exp $ */ 35262617Sdelphij 36262617Sdelphij#ifndef NC_MINGW_H 37262617Sdelphij#define NC_MINGW_H 1 38262617Sdelphij 39262617Sdelphij#ifdef WINVER 40262617Sdelphij# if WINVER < 0x0501 41262617Sdelphij# error WINVER must at least be 0x0501 42262617Sdelphij# endif 43262617Sdelphij#else 44262617Sdelphij# define WINVER 0x0501 45262617Sdelphij#endif 46262617Sdelphij#include <windows.h> 47262617Sdelphij 48262617Sdelphij#undef sleep 49262617Sdelphij#define sleep(n) Sleep((n) * 1000) 50262617Sdelphij 51262617Sdelphij#undef gettimeofday 52262617Sdelphij#define gettimeofday(tv,tz) _nc_gettimeofday(tv,tz) 53262617Sdelphij 54262617Sdelphij#include <sys/time.h> /* for struct timeval */ 55262617Sdelphij 56262617Sdelphijextern int _nc_gettimeofday(struct timeval *, void *); 57262617Sdelphij 58262617Sdelphij#undef HAVE_GETTIMEOFDAY 59262617Sdelphij#define HAVE_GETTIMEOFDAY 1 60262617Sdelphij 61262617Sdelphij#define SIGHUP 1 62262617Sdelphij#define SIGKILL 9 63262617Sdelphij#define getlogin() "username" 64262617Sdelphij 65262617Sdelphij#undef wcwidth 66262617Sdelphij#define wcwidth(ucs) _nc_wcwidth(ucs) 67262617Sdelphijextern int _nc_wcwidth(wchar_t); 68262617Sdelphij 69262617Sdelphij#endif /* NC_MINGW_H */ 70