make ncmpcpp compile with -fno-exceptions

This commit is contained in:
Andrzej Rybczak
2009-09-21 06:01:21 +02:00
parent 14a774b8a3
commit 70910b77ed
12 changed files with 135 additions and 70 deletions

View File

@@ -21,6 +21,7 @@
#include <cstring>
#include <cstdlib>
#include "error.h"
#include "window.h"
using namespace NCurses;
@@ -95,7 +96,7 @@ Window::Window(size_t startx,
|| itsStartY > size_t(LINES)
|| itsWidth+itsStartX > size_t(COLS)
|| itsHeight+itsStartY > size_t(LINES))
throw BadSize();
FatalError("Constructed window is bigger than terminal size!");
if (itsBorder != brNone)
{