mirror of
https://github.com/aaru-dps/Aaru.Compression.Native.git
synced 2025-12-16 19:24:31 +00:00
Move placement of lzma.
This commit is contained in:
39
3rdparty/lzma/CPP/7zip/UI/Console/ConsoleClose.h
vendored
Normal file
39
3rdparty/lzma/CPP/7zip/UI/Console/ConsoleClose.h
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// ConsoleClose.h
|
||||
|
||||
#ifndef __CONSOLE_CLOSE_H
|
||||
#define __CONSOLE_CLOSE_H
|
||||
|
||||
namespace NConsoleClose {
|
||||
|
||||
class CCtrlBreakException {};
|
||||
|
||||
#ifdef UNDER_CE
|
||||
|
||||
inline bool TestBreakSignal() { return false; }
|
||||
struct CCtrlHandlerSetter {};
|
||||
|
||||
#else
|
||||
|
||||
extern unsigned g_BreakCounter;
|
||||
|
||||
inline bool TestBreakSignal()
|
||||
{
|
||||
return (g_BreakCounter != 0);
|
||||
}
|
||||
|
||||
class CCtrlHandlerSetter
|
||||
{
|
||||
#ifndef _WIN32
|
||||
void (*memo_sig_int)(int);
|
||||
void (*memo_sig_term)(int);
|
||||
#endif
|
||||
public:
|
||||
CCtrlHandlerSetter();
|
||||
virtual ~CCtrlHandlerSetter();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user