root / gnuradio-core / src / lib / missing / posix_memalign.h @ 28a55d17
History | View | Annotate | Download (1.1 kB)
| 1 | b2a284bf | jcorgan | /* -*- c++ -*- */
|
|---|---|---|---|
| 2 | b2a284bf | jcorgan | /*
|
| 3 | b2a284bf | jcorgan | * Copyright 2008 Free Software Foundation, Inc. |
| 4 | b2a284bf | jcorgan | * |
| 5 | b2a284bf | jcorgan | * This file is part of GNU Radio |
| 6 | b2a284bf | jcorgan | * |
| 7 | b2a284bf | jcorgan | * GNU Radio is free software; you can redistribute it and/or modify |
| 8 | b2a284bf | jcorgan | * it under the terms of the GNU General Public License as published by |
| 9 | b2a284bf | jcorgan | * the Free Software Foundation; either version 3, or (at your option) |
| 10 | b2a284bf | jcorgan | * any later version. |
| 11 | b2a284bf | jcorgan | * |
| 12 | b2a284bf | jcorgan | * GNU Radio is distributed in the hope that it will be useful, |
| 13 | b2a284bf | jcorgan | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | b2a284bf | jcorgan | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | b2a284bf | jcorgan | * GNU General Public License for more details. |
| 16 | b2a284bf | jcorgan | * |
| 17 | b2a284bf | jcorgan | * You should have received a copy of the GNU General Public License |
| 18 | b2a284bf | jcorgan | * along with GNU Radio; see the file COPYING. If not, write to |
| 19 | b2a284bf | jcorgan | * the Free Software Foundation, Inc., 51 Franklin Street, |
| 20 | b2a284bf | jcorgan | * Boston, MA 02110-1301, USA. |
| 21 | b2a284bf | jcorgan | */ |
| 22 | b2a284bf | jcorgan | |
| 23 | b2a284bf | jcorgan | #ifndef _POSIX_MEMALIGN_H_
|
| 24 | b2a284bf | jcorgan | #define _POSIX_MEMALIGN_H_
|
| 25 | b2a284bf | jcorgan | |
| 26 | b2a284bf | jcorgan | #include <stdlib.h> |
| 27 | b2a284bf | jcorgan | |
| 28 | b2a284bf | jcorgan | #ifndef HAVE_POSIX_MEMALIGN
|
| 29 | b2a284bf | jcorgan | |
| 30 | b2a284bf | jcorgan | #ifdef __cplusplus
|
| 31 | b2a284bf | jcorgan | extern "C" { |
| 32 | b2a284bf | jcorgan | #endif
|
| 33 | b2a284bf | jcorgan | |
| 34 | b2a284bf | jcorgan | extern int posix_memalign (void** memptr, size_t alignment, size_t size); |
| 35 | b2a284bf | jcorgan | |
| 36 | b2a284bf | jcorgan | #ifdef __cplusplus
|
| 37 | b2a284bf | jcorgan | }; |
| 38 | b2a284bf | jcorgan | #endif
|
| 39 | b2a284bf | jcorgan | |
| 40 | b2a284bf | jcorgan | #endif /* ! HAVE_POSIX_MEMALIGN */ |
| 41 | b2a284bf | jcorgan | |
| 42 | b2a284bf | jcorgan | #endif /* _POSIX_MEMALIGN_H_ */ |