Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
Libraries
asn1c
Commits
a57953d7
Commit
a57953d7
authored
Jun 15, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIN32 portability changes
parent
84fbd721
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
skeletons/GeneralizedTime.c
skeletons/GeneralizedTime.c
+8
-8
skeletons/REAL.c
skeletons/REAL.c
+8
-0
No files found.
skeletons/GeneralizedTime.c
View file @
a57953d7
...
...
@@ -10,13 +10,13 @@
#include <errno.h>
#if defined(WIN32)
#
warning PLEASE STOP AND READ!
#
warning localtime_r is implemented via localtime(), which may be not thread-safe.
#
warning gmtime_r is implemented via gmtime(), which may be not thread-safe.
#
warning
#
warning You must fix the code by inserting appropriate locking
#
warning if you want to use asn_GT2time() or asn_UT2time().
#
warning PLEASE STOP AND READ!
#
pragma message( "PLEASE STOP AND READ!")
#
pragma message( " localtime_r is implemented via localtime(), which may be not thread-safe.")
#
pragma message( " gmtime_r is implemented via gmtime(), which may be not thread-safe.")
#
pragma message( " ")
#
pragma message( " You must fix the code by inserting appropriate locking")
#
pragma message( " if you want to use asn_GT2time() or asn_UT2time().")
#
pragma message( "PLEASE STOP AND READ! ")
static
struct
tm
*
localtime_r
(
const
time_t
*
tloc
,
struct
tm
*
result
)
{
struct
tm
*
tm
;
...
...
@@ -33,7 +33,7 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) {
}
#define tzset() _tzset()
#define putenv
_putenv
#define putenv
(c) _putenv(c)
#define _EMULATE_TIMEGM
#endif
/* WIN32 */
...
...
skeletons/REAL.c
View file @
a57953d7
...
...
@@ -13,6 +13,14 @@
#include <errno.h>
#include <REAL.h>
#ifdef WIN32
#include <float.h>
#define copysign _copysign
#define isnan _isnan
#define finite _finite
#define ilogb _logb
#endif
#undef INT_MAX
#define INT_MAX ((int)(((unsigned int)-1) >> 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