Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions primer3/src/libprimer3/read_boulder.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,17 @@ static const char *pr_program_name = "TMP";
/*
* Hack to support old SunOS headers. (We do not try to declare _all_
* undeclared functions; only those with non-int return types.)
* Only declare if we're on a very old pre-ANSI C system that might not have
* proper stdlib.h declarations. ANSI C (C89) and later guarantee strtod()
* is properly declared in stdlib.h, so we skip this on modern systems to
* avoid conflicts with the standard library declaration.
*/
#ifndef __cplusplus
#if !defined(__STDC__) && defined(__sun) && !defined(__SVR4)
/* Very old pre-ANSI C SunOS systems might need this declaration */
extern double strtod();
#endif
#endif

/*
* See read_boulder.h for description.
Expand Down