diff options
Diffstat (limited to 'include/misc.h')
-rw-r--r-- | include/misc.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/misc.h b/include/misc.h index 795cf1890..ba179ff87 100644 --- a/include/misc.h +++ b/include/misc.h @@ -176,17 +176,6 @@ typedef struct _xReq *xReqPtr; #endif -#ifndef PATH_MAX -#include <sys/param.h> -#ifndef PATH_MAX -#ifdef MAXPATHLEN -#define PATH_MAX MAXPATHLEN -#else -#define PATH_MAX 1024 -#endif -#endif -#endif - /** * Calculate the number of bytes needed to hold bits. * @param bits The minimum number of bits needed. @@ -234,31 +223,8 @@ padding_for_int32(const int bytes) return ((-bytes) & 3); } - extern _X_EXPORT char **xstrtokenize(const char *str, const char *separators); -/** - * Compare the two version numbers comprising of major.minor. - * - * @return A value less than 0 if a is less than b, 0 if a is equal to b, - * or a value greater than 0 - */ -static inline int -version_compare(uint32_t a_major, uint32_t a_minor, - uint32_t b_major, uint32_t b_minor) -{ - if (a_major > b_major) - return 1; - if (a_major < b_major) - return -1; - if (a_minor > b_minor) - return 1; - if (a_minor < b_minor) - return -1; - - return 0; -} - /* some macros to help swap requests, replies, and events */ #define LengthRestB(stuff) \ @@ -388,10 +354,6 @@ extern _X_EXPORT void SwapLongs(CARD32 *list, unsigned long count); extern _X_EXPORT void SwapShorts(short *list, unsigned long count); -extern _X_EXPORT void MakePredeclaredAtoms(void); - -extern _X_EXPORT int Ones(unsigned long /*mask */ ); - typedef struct _xPoint *DDXPointPtr; typedef struct pixman_box16 *BoxPtr; typedef struct _xEvent *xEventPtr; |