Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Oct 27, 2024
1 parent d02b85c commit ca73f50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Modelica/Resources/C-Sources/ModelicaTime.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ModelicaTime.c - External functions for Modelica.Utilities.Time
Copyright (C) 2020, Modelica Association and contributors
Copyright (C) 2020-2024, Modelica Association and contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -29,9 +29,8 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

// TODO: Remove when ModelicaTime.c will become part of ModelicaExternalC
#if defined(DYMOSIM)
#pragma once
#if defined(__gnu_linux__)
#define _GNU_SOURCE 1
#endif

#include "ModelicaTime.h"
Expand Down
4 changes: 3 additions & 1 deletion Modelica/Resources/C-Sources/ModelicaTime.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ModelicaTime.h - External functions header for Modelica.Utilities.Time
Copyright (C) 2020, Modelica Association and contributors
Copyright (C) 2020-2024, Modelica Association and contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -42,6 +42,8 @@
#ifndef MODELICA_TIME_H_
#define MODELICA_TIME_H_

#include <stdlib.h>

#if !defined(MODELICA_EXPORT)
#if defined(__cplusplus)
#define MODELICA_EXPORT extern "C"
Expand Down

0 comments on commit ca73f50

Please sign in to comment.