summaryrefslogtreecommitdiff
path: root/tests/test-pedantic-compilation.cxx
blob: 0b501f9b828efba2c1b9825cb0724d20b60e4e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Defining GP_DEBUG before including gphoto2-port-log.h prevents the 
 * latter from defining GP_DEBUG as a variadic macro. Variadic macros
 * have not been defined in ANSI C, so we are cheating here.
 *
 * This should be the only problem we cause, and thus work around it
 * here.
 */
#define GP_DEBUG

#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-camera.h>
#include <gphoto2/gphoto2-list.h>
#include <gphoto2/gphoto2-version.h>
#include <gphoto2/gphoto2-setting.h>
#include <gphoto2/gphoto2-file.h>
#include <gphoto2/gphoto2-filesys.h>
#include <gphoto2/gphoto2-context.h>
#include <gphoto2/gphoto2-abilities-list.h>

#include <gphoto2/gphoto2-port.h>
#include <gphoto2/gphoto2-port-info-list.h>
#include <gphoto2/gphoto2-port-log.h>
#include <gphoto2/gphoto2-port-portability.h>
#include <gphoto2/gphoto2-port-result.h>
#include <gphoto2/gphoto2-port-version.h>

int main()
{
  return 0;
}