Linus Walleij | eb8c6fe | 2006-02-03 09:46:22 +0000 | [diff] [blame] | 1 | /** |
| 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 Walleij | 543badf | 2007-02-05 19:07:38 +0000 | [diff] [blame] | 5 | * |
| 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 Walleij | eb8c6fe | 2006-02-03 09:46:22 +0000 | [diff] [blame] | 22 | */ |
| 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 Walleij | 934cd7f | 2006-12-06 20:21:43 +0000 | [diff] [blame] | 32 | // Only if using MSVC... |
Linus Walleij | eb8c6fe | 2006-02-03 09:46:22 +0000 | [diff] [blame] | 33 | #include "..\windows\getopt.h" |
| 34 | #endif |