blob: 26f3bcf9822ede304a28d479bd534c3bf8f3a031 [file] [log] [blame]
Linus Walleijeb8c6fe2006-02-03 09:46:22 +00001/**
2 * \file common.h
3 * These headers are used by absolutely all sample programs.
4 * Special quirks that apply to all samples go here.
Linus Walleij543badf2007-02-05 19:07:38 +00005 *
6 * Copyright (C) 2005-2007 Linus Walleij <triad@df.lth.se>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library 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 GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
Linus Walleijeb8c6fe2006-02-03 09:46:22 +000022 */
23#include <libmtp.h>
24#ifndef _MSC_VER
25#include "config.h"
26#ifdef HAVE_GETOPT_H
27#include <getopt.h>
28#else
29#include <unistd.h>
30#endif
31#else
Linus Walleij934cd7f2006-12-06 20:21:43 +000032// Only if using MSVC...
Linus Walleijeb8c6fe2006-02-03 09:46:22 +000033#include "..\windows\getopt.h"
34#endif