Skip to content

Cygwin build fix#1200

Merged
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
Ecognize:cygwin_build
Dec 14, 2024
Merged

Cygwin build fix#1200
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
Ecognize:cygwin_build

Conversation

@landswellsong
Copy link
Contributor

Ensures strtod_l is provided which is normally hidden for non-GNU source

Ensures strtod_l is provided
@Saleh-At
Copy link

Saleh-At commented Nov 29, 2024

add these on top of file "jsbsim\src\input_output\string_utilities.cpp"

#define _GNU_SOURCE
#include <_ansi.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <iostream>
#include <sstream>
#include <stdio.h>

@codecov
Copy link

codecov bot commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.96%. Comparing base (f6ae92e) to head (d2a4e7b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1200   +/-   ##
=======================================
  Coverage   24.96%   24.96%           
=======================================
  Files         170      170           
  Lines       19283    19283           
=======================================
  Hits         4814     4814           
  Misses      14469    14469           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bcoconni
Copy link
Member

bcoconni commented Dec 8, 2024

@landswellsong, @Saleh-At I'm not sure I'm understanding your request ? Is the PR in its current form complete for the compilation of JSBSim with CygWin or should some further changes be added ?

Please note that some headers are appearing twice in @Saleh-At suggestion (errno.h, stdlib.h, stdio.h, …) and would the PR be modified to include these additional headers then please remove redundant code and update the #ifdef __CYGWIN__ accordingly to avoid polluting the other compilers.

Thanks for the PR.

@landswellsong
Copy link
Contributor Author

@bcoconni it works for me as is without additional headers, just the commit which I've sent. I'm unsure why do any additional headers need to be included, it seemed to have only be a problem with one particular unit file.

@bcoconni bcoconni merged commit 2bdf0d4 into JSBSim-Team:master Dec 14, 2024
@bcoconni
Copy link
Member

PR merged. Thanks !

bcoconni pushed a commit to bcoconni/jsbsim that referenced this pull request Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants