Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Maintenance operation of our GitLab server is scheduled for Wednesday, April 16, 2025, at 2PM.
Show more breadcrumbs
oai
asn1c
Commits
3f6afc1e
Commit
3f6afc1e
authored
18 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
gcc 2.95.x does not like __attribute__ on typedefs
parent
afda1a50
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
skeletons/asn_application.h
+1
-2
1 addition, 2 deletions
skeletons/asn_application.h
skeletons/asn_system.h
+8
-2
8 additions, 2 deletions
skeletons/asn_system.h
with
9 additions
and
4 deletions
skeletons/asn_application.h
+
1
−
2
View file @
3f6afc1e
...
@@ -36,8 +36,7 @@ typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
...
@@ -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
,
typedef
void
(
asn_app_constraint_failed_f
)(
void
*
application_specific_key
,
struct
asn_TYPE_descriptor_s
*
type_descriptor_which_failed
,
struct
asn_TYPE_descriptor_s
*
type_descriptor_which_failed
,
const
void
*
structure_which_failed_ptr
,
const
void
*
structure_which_failed_ptr
,
const
char
*
error_message_format
,
...)
const
char
*
error_message_format
,
...)
GCC_PRINTFLIKE
(
4
,
5
);
__attribute__
((
format
(
printf
,
4
,
5
)));
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
This diff is collapsed.
Click to expand it.
skeletons/asn_system.h
+
8
−
2
View file @
3f6afc1e
...
@@ -78,8 +78,14 @@ typedef unsigned int uint32_t;
...
@@ -78,8 +78,14 @@ typedef unsigned int uint32_t;
#endif
/* WIN32 */
#endif
/* WIN32 */
#ifndef __GNUC__
#if __GNUC__ >= 3
#define __attribute__(ignore)
#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
#endif
#ifndef offsetof
/* If not defined by <stddef.h> */
#ifndef offsetof
/* If not defined by <stddef.h> */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment