Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Havar
asn1c
Commits
0ede18cb
Commit
0ede18cb
authored
Sep 07, 2004
by
Lev Walkin
Browse files
inttypes/stdint hell
parent
459ab02f
Changes
1
Hide whitespace changes
Inline
Side-by-side
skeletons/asn_types.h
View file @
0ede18cb
...
...
@@ -8,13 +8,26 @@
#ifndef _ASN_TYPES_H_
#define _ASN_TYPES_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
/* For fprintf() */
#include <stdlib.h>
/* For *alloc(3) */
#include <string.h>
/* For memcpy(3) */
#include <sys/types.h>
/* For size_t */
#include <stdarg.h>
/* For va_start */
#include <stddef.h>
/* for offsetof and ptrdiff_t */
#include <inttypes.h>
/* C99 specifies this file */
/*
* Earlier FreeBSD version didn't have <stdint.h>,
* but <inttypes.h> was present.
*/
#if !defined(__FreeBSD__) || !defined(_SYS_INTTYPES_H_)
/* Workaround */
#include <stdint.h>
/* SUSv2+ and C99 specify this file, for uintXX_t */
#endif
#ifdef WIN32
#define snprintf _snprintf
...
...
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