X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fsrc%2Fncurses_compat.c;h=f2de2228d12f273de6b81f63a3dab71a453a674f;hp=b3d0607a5ff29a7a0c459c3398f326bd74016342;hb=d30f99439fcc8d4bb4c38e5c4afb4f6555fc6ad4;hpb=362db2575aed6b2c7a8d3928b39af51544502876 diff --git a/Ada95/src/ncurses_compat.c b/Ada95/src/ncurses_compat.c index b3d0607a..f2de2228 100644 --- a/Ada95/src/ncurses_compat.c +++ b/Ada95/src/ncurses_compat.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 2011 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 2011,2015 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 * @@ -32,12 +33,22 @@ /* Version Control - $Id: ncurses_compat.c,v 1.2 2011/03/28 00:29:04 tom Exp $ + $Id: ncurses_compat.c,v 1.4 2020/02/02 23:34:34 tom Exp $ --------------------------------------------------------------------------*/ /* * Provide compatibility with older versions of ncurses. */ +#include + +#if HAVE_INTTYPES_H +# include +#else +# if HAVE_STDINT_H +# include +# endif +#endif + #include #if defined(NCURSES_VERSION_PATCH) @@ -49,7 +60,7 @@ extern int _nc_has_mouse(void); bool has_mouse(void) { - return (bool) _nc_has_mouse(); + return (bool)_nc_has_mouse(); } #endif