Fix the build on CentOS 6
This commit is contained in:
parent
e359d16417
commit
c4e333bc8b
|
@ -75,7 +75,7 @@ void term_boundaries (int& x, int& y)
|
||||||
if ( y < 0 )
|
if ( y < 0 )
|
||||||
y = 0;
|
y = 0;
|
||||||
|
|
||||||
if ( x >= term_width )
|
if ( x >= term_width && term_width > 0 )
|
||||||
{
|
{
|
||||||
y += x / term_width;
|
y += x / term_width;
|
||||||
x %= term_width;
|
x %= term_width;
|
||||||
|
|
|
@ -113,7 +113,7 @@ void FVTerm::setTermXY (int x, int y)
|
||||||
term_width = int(getColumnNumber());
|
term_width = int(getColumnNumber());
|
||||||
term_height = int(getLineNumber());
|
term_height = int(getLineNumber());
|
||||||
|
|
||||||
if ( x >= term_width )
|
if ( x >= term_width && term_width > 0 )
|
||||||
{
|
{
|
||||||
y += x / term_width;
|
y += x / term_width;
|
||||||
x %= term_width;
|
x %= term_width;
|
||||||
|
|
|
@ -28,10 +28,11 @@
|
||||||
#include <cppunit/TestResultCollector.h>
|
#include <cppunit/TestResultCollector.h>
|
||||||
#include <cppunit/TestRunner.h>
|
#include <cppunit/TestRunner.h>
|
||||||
|
|
||||||
#include <final/final.h>
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
|
#include <final/final.h>
|
||||||
|
|
||||||
#define CPPUNIT_ASSERT_CSTRING(expected, actual) \
|
#define CPPUNIT_ASSERT_CSTRING(expected, actual) \
|
||||||
check_c_string (expected, actual, CPPUNIT_SOURCELINE())
|
check_c_string (expected, actual, CPPUNIT_SOURCELINE())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue