mirror of
https://github.com/tmux/tmux.git
synced 2025-04-21 03:48:47 +00:00
Style tweaks.
This commit is contained in:
parent
2287ec7b3e
commit
914f8584ef
26
compat.h
26
compat.h
@ -1,4 +1,4 @@
|
|||||||
/* $Id: compat.h,v 1.27 2010-10-27 20:21:00 nicm Exp $ */
|
/* $Id: compat.h,v 1.28 2010-10-27 21:33:15 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -16,6 +16,17 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __GNUC__
|
||||||
|
#define __attribute__(a)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __dead
|
||||||
|
#define __dead __attribute__ ((__noreturn__))
|
||||||
|
#endif
|
||||||
|
#ifndef __packed
|
||||||
|
#define __packed __attribute__ ((__packed__))
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_U_INT
|
#ifndef HAVE_U_INT
|
||||||
typedef uint8_t u_int8_t;
|
typedef uint8_t u_int8_t;
|
||||||
typedef uint16_t u_int16_t;
|
typedef uint16_t u_int16_t;
|
||||||
@ -79,10 +90,10 @@ typedef uint64_t u_int64_t;
|
|||||||
#include "compat/vis.h"
|
#include "compat/vis.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_IMSG
|
#ifdef HAVE_IMSG
|
||||||
#include "compat/imsg.h"
|
|
||||||
#else
|
|
||||||
#include <imsg.h>
|
#include <imsg.h>
|
||||||
|
#else
|
||||||
|
#include "compat/imsg.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STDINT_H
|
#ifdef HAVE_STDINT_H
|
||||||
@ -129,13 +140,6 @@ typedef uint64_t u_int64_t;
|
|||||||
#define SUN_LEN(sun) (sizeof (sun)->sun_path)
|
#define SUN_LEN(sun) (sizeof (sun)->sun_path)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __dead
|
|
||||||
#define __dead __attribute__ ((__noreturn__))
|
|
||||||
#endif
|
|
||||||
#ifndef __packed
|
|
||||||
#define __packed __attribute__ ((__packed__))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef timercmp
|
#ifndef timercmp
|
||||||
#define timercmp(tvp, uvp, cmp) \
|
#define timercmp(tvp, uvp, cmp) \
|
||||||
(((tvp)->tv_sec == (uvp)->tv_sec) ? \
|
(((tvp)->tv_sec == (uvp)->tv_sec) ? \
|
||||||
|
Loading…
Reference in New Issue
Block a user