From 167fceac3796d3f63518da90b470d3e697f152a0 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 5 Sep 2023 11:11:18 +0700 Subject: [PATCH] Enabling command history on Linux. --- src/base/cmd/cmdHist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/cmd/cmdHist.c b/src/base/cmd/cmdHist.c index b8cfc98f9..0aaf6d5cf 100644 --- a/src/base/cmd/cmdHist.c +++ b/src/base/cmd/cmdHist.c @@ -102,7 +102,7 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command ) ***********************************************************************/ void Cmd_HistoryRead( Abc_Frame_t * p ) { -#if defined(WIN32) && defined(ABC_USE_HISTORY) +#if defined(ABC_USE_HISTORY) char Buffer[ABC_MAX_STR]; FILE * pFile; assert( Vec_PtrSize(p->aHistory) == 0 ); @@ -133,7 +133,7 @@ void Cmd_HistoryRead( Abc_Frame_t * p ) ***********************************************************************/ void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit ) { -#if defined(WIN32) && defined(ABC_USE_HISTORY) +#if defined(ABC_USE_HISTORY) FILE * pFile; char * pStr; int i; @@ -163,7 +163,7 @@ void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit ) ***********************************************************************/ void Cmd_HistoryPrint( Abc_Frame_t * p, int Limit ) { -#if defined(WIN32) && defined(ABC_USE_HISTORY) +#if defined(ABC_USE_HISTORY) char * pStr; int i; Limit = Abc_MaxInt( 0, Vec_PtrSize(p->aHistory)-Limit );