Blame cronie_common.h

Packit f58a13
/*
Packit f58a13
 * Copyright (c) 2012 Copyright Red Hat Software
Packit f58a13
 *
Packit f58a13
 * Permission to use, copy, modify, and distribute this software for any
Packit f58a13
 * purpose with or without fee is hereby granted, provided that the above
Packit f58a13
 * copyright notice and this permission notice appear in all copies.
Packit f58a13
 *
Packit f58a13
 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
Packit f58a13
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
Packit f58a13
 * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
Packit f58a13
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
Packit f58a13
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
Packit f58a13
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
Packit f58a13
 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Packit f58a13
 */
Packit f58a13
Packit f58a13
/* Collection of definitions, inline functions, etc, that are useful for
Packit f58a13
 * both cron and anacron.  */
Packit f58a13
Packit f58a13
#ifndef CRONIE_COMMON_H
Packit f58a13
#define CRONIE_COMMON_H
Packit f58a13
Packit f58a13
#ifndef __attribute__
Packit f58a13
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
Packit f58a13
#  define __attribute__(x)      /* empty */
Packit f58a13
# endif
Packit f58a13
#endif
Packit f58a13
Packit f58a13
#ifndef ATTRIBUTE_NORETURN
Packit f58a13
# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
Packit f58a13
#endif
Packit f58a13
Packit f58a13
#ifndef ATTRIBUTE_UNUSED
Packit f58a13
# define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
Packit f58a13
#endif
Packit f58a13
Packit f58a13
#endif /* CRONIE_COMMON_H */