make copy_string able to build on older compilers (bug #4714)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@242 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
parent
bbd1d88f70
commit
598e8092f1
19
compiler.h
Executable file
19
compiler.h
Executable file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Asterisk -- A telephony toolkit for Linux.
|
||||
*
|
||||
* Compiler-specific macros and other items
|
||||
*
|
||||
* Copyright (C) 2005, Digium, Inc.
|
||||
*
|
||||
* This program is free software, distributed under the terms of
|
||||
* the GNU General Public License
|
||||
*/
|
||||
|
||||
#ifndef _ASTERISK_COMPILER_H
|
||||
#define _ASTERISK_COMPILER_H
|
||||
|
||||
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
|
||||
#define __builtin_expect(exp, c) (exp)
|
||||
#endif
|
||||
|
||||
#endif /* _ASTERISK_COMPILER_H */
|
@ -26,6 +26,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "compiler.h"
|
||||
#include "libpri.h"
|
||||
#include "pri_internal.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user