Commit bbb71d86 authored by Jean Meurice's avatar Jean Meurice

ServerAdapter fix for Windows Local Build

parent 8ce5ce5e
Pipeline #373381 passed with stage
in 11 minutes and 29 seconds
......@@ -10,7 +10,7 @@
<groupId>de.monticore.lang.monticar</groupId>
<artifactId>embedded-montiarc-math-generator</artifactId>
<version>0.4.1</version>
<version>0.4.2</version>
<!-- == PROJECT DEPENDENCIES ============================================= -->
......@@ -71,7 +71,7 @@
<dependency>
<groupId>montisim</groupId>
<artifactId>commons</artifactId>
<version>2.0.6</version>
<version>2.0.8</version>
</dependency>
......
......@@ -9,6 +9,11 @@
#include "ddc_mode.h"
</#if>
#if defined _WIN32 || defined _WIN64
#define IS_WIN
#else
#endif
using namespace std;
bool running = true;
......@@ -22,6 +27,8 @@ void signal_handler(int signal);
int main(int argc, char** argv) {
// No need for interupt handling on windows => Ctrl+C is handled by the OS
#ifndef IS_WIN
struct sigaction sa;
sa.sa_handler = signal_handler;
sigemptyset(&sa.sa_mask);
......@@ -34,6 +41,7 @@ int main(int argc, char** argv) {
perror("sigaction");
exit(1);
}
#endif
if (argc == 3) {
string cmd = argv[1];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment