X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=c%2B%2B%2Fdemo.cc;h=d99052cb09c87873b6938197d00d077014b622e8;hb=refs%2Fheads%2Fmaster;hp=195e98a0d6de9bcc44d190ef2d870e307a6ae138;hpb=643ec2bf782cd02efafe3ccdeaea8920a404645e;p=ncurses.git diff --git a/c++/demo.cc b/c++/demo.cc index 195e98a0..7d300ff3 100644 --- a/c++/demo.cc +++ b/c++/demo.cc @@ -1,6 +1,6 @@ // * This makes emacs happy -*-Mode: C++;-*- /**************************************************************************** - * Copyright 2018-2020,2021 Thomas E. Dickey * + * Copyright 2018-2021,2023 Thomas E. Dickey * * Copyright 1998-2012,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -36,7 +36,7 @@ * Demo code for NCursesMenu and NCursesForm written by * Juergen Pfeifer * - * $Id: demo.cc,v 1.50 2021/09/04 10:52:55 tom Exp $ + * $Id: demo.cc,v 1.52 2023/08/26 19:14:14 tom Exp $ */ #include "internal.h" @@ -46,6 +46,7 @@ #if (defined(_WIN32) || defined(_WIN64)) #undef KEY_EVENT +#undef sleep #define sleep(n) Sleep(n) #else extern "C" unsigned int sleep(unsigned int); @@ -168,7 +169,7 @@ public: // // ------------------------------------------------------------------------- // -template class MyAction : public NCursesUserItem +template class NCURSES_CXX_IMPEXP MyAction : public NCursesUserItem { public: MyAction (const char* p_name, @@ -185,9 +186,6 @@ public: } }; -template class MyAction; -template class NCURSES_CXX_IMPEXP NCursesUserItem; - class QuitItem : public NCursesMenuItem { public: