Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / gnulib-m4 / sig_atomic_t.m4
1 # sig_atomic_t.m4 serial 2
2 dnl Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gt_TYPE_SIG_ATOMIC_T],
8 [
9   AC_CHECK_TYPES([sig_atomic_t], ,
10     [AC_DEFINE([sig_atomic_t], [int],
11        [Define as an integer type suitable for memory locations that can be
12         accessed atomically even in the presence of asynchnonous signals.])],
13     [#include <signal.h>])
14 ])