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
a77e8b4e
Commit
a77e8b4e
authored
Oct 12, 2014
by
Lev Walkin
Browse files
Options
Browse Files
Download
Plain Diff
Merged
http://github.com/vlm/asn1c/pull/31
: compiling on Win32.
parents
a7591b5c
32789957
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
0 deletions
+22
-0
asn1c/sys-common.h
asn1c/sys-common.h
+2
-0
configure.ac
configure.ac
+5
-0
libasn1compiler/asn1c_save.c
libasn1compiler/asn1c_save.c
+4
-0
libasn1fix/asn1fix_internal.h
libasn1fix/asn1fix_internal.h
+2
-0
skeletons/GeneralizedTime.c
skeletons/GeneralizedTime.c
+9
-0
No files found.
asn1c/sys-common.h
View file @
a77e8b4e
...
@@ -64,7 +64,9 @@
...
@@ -64,7 +64,9 @@
#ifndef EX_OSFILE
#ifndef EX_OSFILE
#define EX_OSFILE 72
#define EX_OSFILE 72
#endif
#endif
#if defined HAVE_DECL_ALLOCA && !HAVE_DECL_ALLOCA
#define alloca _alloca
#define alloca _alloca
#endif
#define snprintf _snprintf
#define snprintf _snprintf
#endif
/* _WIN32 */
#endif
/* _WIN32 */
configure.ac
View file @
a77e8b4e
...
@@ -19,6 +19,9 @@ AC_PROG_YACC
...
@@ -19,6 +19,9 @@ AC_PROG_YACC
AM_PROG_LEX
AM_PROG_LEX
AC_PATH_PROG(AR, ar, ar, $PATH:/usr/ucb:/usr/ccs/bin) dnl for Solaris
AC_PATH_PROG(AR, ar, ar, $PATH:/usr/ucb:/usr/ccs/bin) dnl for Solaris
dnl If you need to see the details, just run make V=1.
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
case "$host_os" in
case "$host_os" in
cygwin)
cygwin)
case "$target" in
case "$target" in
...
@@ -94,6 +97,8 @@ AC_CHECK_FUNCS(strtoimax strtoll)
...
@@ -94,6 +97,8 @@ AC_CHECK_FUNCS(strtoimax strtoll)
AC_CHECK_FUNCS(mergesort)
AC_CHECK_FUNCS(mergesort)
AC_CHECK_FUNCS(mkstemps)
AC_CHECK_FUNCS(mkstemps)
AC_CHECK_FUNCS(timegm)
AC_CHECK_FUNCS(timegm)
AC_CHECK_DECLS(alloca strcasecmp)
AC_TRY_LINK_FUNC([symlink],[AC_DEFINE([HAVE_SYMLINK], 1, [Define to 1 if you have the symlink function.])])
AC_OUTPUT( \
AC_OUTPUT( \
skeletons/tests/Makefile \
skeletons/tests/Makefile \
...
...
libasn1compiler/asn1c_save.c
View file @
a77e8b4e
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
#include "asn1c_save.h"
#include "asn1c_save.h"
#include "asn1c_out.h"
#include "asn1c_out.h"
#ifndef HAVE_SYMLINK
#define symlink(a,b) (errno=ENOSYS, -1)
#endif
#define HINCLUDE(s) \
#define HINCLUDE(s) \
((arg->flags & A1C_INCLUDES_QUOTED) \
((arg->flags & A1C_INCLUDES_QUOTED) \
? fprintf(fp_h, "#include \"%s\"\n", s) \
? fprintf(fp_h, "#include \"%s\"\n", s) \
...
...
libasn1fix/asn1fix_internal.h
View file @
a77e8b4e
...
@@ -27,8 +27,10 @@
...
@@ -27,8 +27,10 @@
#define EX_NOINPUT 66
#define EX_NOINPUT 66
#define EX_DATAERR 65
#define EX_DATAERR 65
#define snprintf _snprintf
#define snprintf _snprintf
#if defined HAVE_DECL_STRCASECMP && !HAVE_DECL_STRCASECMP
#define strcasecmp stricmp
#define strcasecmp stricmp
#endif
#endif
#endif
#ifndef ETOOMANYREFS
#ifndef ETOOMANYREFS
#define ETOOMANYREFS 144
#define ETOOMANYREFS 144
...
...
skeletons/GeneralizedTime.c
View file @
a77e8b4e
...
@@ -67,6 +67,14 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) {
...
@@ -67,6 +67,14 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) {
#define GMTOFF(tm) (-timezone)
#define GMTOFF(tm) (-timezone)
#endif
/* HAVE_TM_GMTOFF */
#endif
/* HAVE_TM_GMTOFF */
#if defined(_WIN32)
#pragma message( "PLEASE STOP AND READ!")
#pragma message( " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), 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!")
#else
#if (defined(_EMULATE_TIMEGM) || !defined(HAVE_TM_GMTOFF))
#if (defined(_EMULATE_TIMEGM) || !defined(HAVE_TM_GMTOFF))
#warning "PLEASE STOP AND READ!"
#warning "PLEASE STOP AND READ!"
#warning " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe."
#warning " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe."
...
@@ -75,6 +83,7 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) {
...
@@ -75,6 +83,7 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) {
#warning " if you want to use asn_GT2time() or asn_UT2time()."
#warning " if you want to use asn_GT2time() or asn_UT2time()."
#warning "PLEASE STOP AND READ!"
#warning "PLEASE STOP AND READ!"
#endif
/* _EMULATE_TIMEGM */
#endif
/* _EMULATE_TIMEGM */
#endif
/*
/*
* Override our GMTOFF decision for other known platforms.
* Override our GMTOFF decision for other known platforms.
...
...
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