ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.465 by root, Tue Mar 25 17:44:13 2014 UTC vs.
Revision 1.469 by root, Fri Sep 5 16:21:19 2014 UTC

43# include EV_CONFIG_H 43# include EV_CONFIG_H
44# else 44# else
45# include "config.h" 45# include "config.h"
46# endif 46# endif
47 47
48#if HAVE_FLOOR 48# if HAVE_FLOOR
49# ifndef EV_USE_FLOOR 49# ifndef EV_USE_FLOOR
50# define EV_USE_FLOOR 1 50# define EV_USE_FLOOR 1
51# endif
51# endif 52# endif
52#endif
53 53
54# if HAVE_CLOCK_SYSCALL 54# if HAVE_CLOCK_SYSCALL
55# ifndef EV_USE_CLOCK_SYSCALL 55# ifndef EV_USE_CLOCK_SYSCALL
56# define EV_USE_CLOCK_SYSCALL 1 56# define EV_USE_CLOCK_SYSCALL 1
57# ifndef EV_USE_REALTIME 57# ifndef EV_USE_REALTIME
506 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 506 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
507 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 507 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
508 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH- 508 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH-
509 * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 509 * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
510 * OF THE POSSIBILITY OF SUCH DAMAGE. 510 * OF THE POSSIBILITY OF SUCH DAMAGE.
511 *
512 * Alternatively, the contents of this file may be used under the terms of
513 * the GNU General Public License ("GPL") version 2 or any later version,
514 * in which case the provisions of the GPL are applicable instead of
515 * the above. If you wish to allow the use of your version of this file
516 * only under the terms of the GPL and not to allow others to use your
517 * version of this file under the BSD license, indicate your decision
518 * by deleting the provisions above and replace them with the notice
519 * and other provisions required by the GPL. If you do not delete the
520 * provisions above, a recipient may use your version of this file under
521 * either the BSD or the GPL.
511 */ 522 */
512 523
513#ifndef ECB_H 524#ifndef ECB_H
514#define ECB_H 525#define ECB_H
515 526
794 #define ecb_decltype(x) __decltype(x) 805 #define ecb_decltype(x) __decltype(x)
795#elif ECB_GCC_VERSION(3,0) 806#elif ECB_GCC_VERSION(3,0)
796 #define ecb_decltype(x) __typeof(x) 807 #define ecb_decltype(x) __typeof(x)
797#endif 808#endif
798 809
810#if _MSC_VER >= 1300
811 #define ecb_deprecated __declspec(deprecated)
812#else
813 #define ecb_deprecated ecb_attribute ((__deprecated__))
814#endif
815
799#define ecb_noinline ecb_attribute ((__noinline__)) 816#define ecb_noinline ecb_attribute ((__noinline__))
800#define ecb_unused ecb_attribute ((__unused__)) 817#define ecb_unused ecb_attribute ((__unused__))
801#define ecb_const ecb_attribute ((__const__)) 818#define ecb_const ecb_attribute ((__const__))
802#define ecb_pure ecb_attribute ((__pure__)) 819#define ecb_pure ecb_attribute ((__pure__))
803 820
821/* http://msdn.microsoft.com/en-us/library/k6ktzx3s.aspx __declspec(noreturn) */
804#if ECB_C11 822#if ECB_C11
805 #define ecb_noreturn _Noreturn 823 #define ecb_noreturn _Noreturn
806#else 824#else
807 #define ecb_noreturn ecb_attribute ((__noreturn__)) 825 #define ecb_noreturn ecb_attribute ((__noreturn__))
808#endif 826#endif
1087 || defined __m68k__ \ 1105 || defined __m68k__ \
1088 || defined __m88k__ \ 1106 || defined __m88k__ \
1089 || defined __sh__ \ 1107 || defined __sh__ \
1090 || defined _M_IX86 || defined _M_AMD64 || defined _M_IA64 \ 1108 || defined _M_IX86 || defined _M_AMD64 || defined _M_IA64 \
1091 || (defined __arm__ && (defined __ARM_EABI__ || defined __EABI__ || defined __VFP_FP__ || defined _WIN32_WCE || defined __ANDROID__)) \ 1109 || (defined __arm__ && (defined __ARM_EABI__ || defined __EABI__ || defined __VFP_FP__ || defined _WIN32_WCE || defined __ANDROID__)) \
1092 | defined __aarch64__ 1110 || defined __aarch64__
1093 #define ECB_STDFP 1 1111 #define ECB_STDFP 1
1094 #include <string.h> /* for memcpy */ 1112 #include <string.h> /* for memcpy */
1095#else 1113#else
1096 #define ECB_STDFP 0 1114 #define ECB_STDFP 0
1097#endif 1115#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines