audiounit_ios: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()
[vlc.git] / compat / pathconf.c
blob34f990ab19da94bf48f029b536a15bda7b6ac369
1 /*****************************************************************************
2 * pathconf.c: POSIX pathconf() replacement
3 *****************************************************************************
4 * Copyright (C) 2017 VLC authors and VideoLAN
6 * Authors: Dennis Hamester <dhamester@jusst.de>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 #ifdef HAVE_CONFIG_H
24 # include <config.h>
25 #endif
27 #include <vlc_common.h>
29 #ifdef __native_client__
30 long pathconf (const char *path, int name)
32 VLC_UNUSED(path);
33 VLC_UNUSED(name);
34 return -1;
36 #elif defined(_WIN32)
37 /* Windows does not have pathconf, but that is OK */
38 #else
39 # error pathconf not implemented on your platform!
40 #endif