root/cronie_common.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2012 Copyright Red Hat Software
   3  *
   4  * Permission to use, copy, modify, and distribute this software for any
   5  * purpose with or without fee is hereby granted, provided that the above
   6  * copyright notice and this permission notice appear in all copies.
   7  *
   8  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
   9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
  11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  14  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15  */
  16 
  17 /* Collection of definitions, inline functions, etc, that are useful for
  18  * both cron and anacron.  */
  19 
  20 #ifndef CRONIE_COMMON_H
  21 #define CRONIE_COMMON_H
  22 
  23 #ifndef __attribute__
  24 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
  25 #  define __attribute__(x)      /* empty */
  26 # endif
  27 #endif
  28 
  29 #ifndef ATTRIBUTE_NORETURN
  30 # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
  31 #endif
  32 
  33 #ifndef ATTRIBUTE_UNUSED
  34 # define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
  35 #endif
  36 
  37 #endif /* CRONIE_COMMON_H */

/* [previous][next][first][last][top][bottom][index][help]  */