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
0308ec56
Commit
0308ec56
authored
Jan 08, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/list: don't use GLib
parent
6cafec8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
song.h
src/song.h
+2
-0
list.h
src/util/list.h
+1
-3
No files found.
src/song.h
View file @
0308ec56
...
...
@@ -23,6 +23,8 @@
#include "util/list.h"
#include "gcc.h"
#include <glib.h>
#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
...
...
src/util/list.h
View file @
0308ec56
...
...
@@ -25,8 +25,6 @@
#ifndef _LINUX_LIST_H
#define _LINUX_LIST_H
#include <glib.h>
#ifdef __clang__
/* allow typeof() */
#pragma GCC diagnostic ignored "-Wlanguage-extension-token"
...
...
@@ -40,7 +38,7 @@
*
*/
#define container_of(ptr, type, member) \
(
&G_STRUCT_MEMBER(type, ptr, -G_STRUCT_OFFSET
(type, member)))
(
(type *)((uint8_t *)ptr - offsetof
(type, member)))
/*
* These are non-NULL pointers that will result in page faults
...
...
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