Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
EMAM2Cpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
bbb71d86
Commit
bbb71d86
authored
Dec 05, 2020
by
Jean Meurice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ServerAdapter fix for Windows Local Build
parent
8ce5ce5e
Pipeline
#373381
passed with stage
in 11 minutes and 29 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
pom.xml
pom.xml
+2
-2
src/main/resources/template/dynamic_interface/server_adapter.cpp.ftl
...sources/template/dynamic_interface/server_adapter.cpp.ftl
+8
-0
No files found.
pom.xml
View file @
bbb71d86
...
...
@@ -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>
...
...
src/main/resources/template/dynamic_interface/server_adapter.cpp.ftl
View file @
bbb71d86
...
...
@@ -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];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment