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
3f6afc1e
Commit
3f6afc1e
authored
Sep 15, 2006
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 2.95.x does not like __attribute__ on typedefs
parent
afda1a50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
skeletons/asn_application.h
skeletons/asn_application.h
+1
-2
skeletons/asn_system.h
skeletons/asn_system.h
+8
-2
No files found.
skeletons/asn_application.h
View file @
3f6afc1e
...
...
@@ -36,8 +36,7 @@ typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
typedef
void
(
asn_app_constraint_failed_f
)(
void
*
application_specific_key
,
struct
asn_TYPE_descriptor_s
*
type_descriptor_which_failed
,
const
void
*
structure_which_failed_ptr
,
const
char
*
error_message_format
,
...)
__attribute__
((
format
(
printf
,
4
,
5
)));
const
char
*
error_message_format
,
...)
GCC_PRINTFLIKE
(
4
,
5
);
#ifdef __cplusplus
}
...
...
skeletons/asn_system.h
View file @
3f6afc1e
...
...
@@ -78,8 +78,14 @@ typedef unsigned int uint32_t;
#endif
/* WIN32 */
#ifndef __GNUC__
#define __attribute__(ignore)
#if __GNUC__ >= 3
#ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#endif
#else
#ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var)
/* nothing */
#endif
#endif
#ifndef offsetof
/* If not defined by <stddef.h> */
...
...
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