Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
50cfb997
Commit
50cfb997
authored
Jun 12, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc.h: backport GCC_CHECK_VERSION() from v0.17.x
parent
6bb166aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
gcc.h
src/gcc.h
+6
-1
No files found.
src/gcc.h
View file @
50cfb997
...
@@ -20,13 +20,18 @@
...
@@ -20,13 +20,18 @@
#ifndef MPD_GCC_H
#ifndef MPD_GCC_H
#define MPD_GCC_H
#define MPD_GCC_H
#define GCC_CHECK_VERSION(major, minor) \
(defined(__GNUC__) && \
(__GNUC__ > (major) || \
(__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))))
/* this allows us to take advantage of special gcc features while still
/* this allows us to take advantage of special gcc features while still
* allowing other compilers to compile:
* allowing other compilers to compile:
*
*
* example taken from: http://rlove.org/log/2005102601
* example taken from: http://rlove.org/log/2005102601
*/
*/
#if
defined(__GNUC__) && (__GNUC__ >= 3
)
#if
GCC_CHECK_VERSION(3,0
)
# define mpd_must_check __attribute__ ((warn_unused_result))
# define mpd_must_check __attribute__ ((warn_unused_result))
# define mpd_packed __attribute__ ((packed))
# define mpd_packed __attribute__ ((packed))
/* these are very useful for type checking */
/* these are very useful for type checking */
...
...
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