~fillods/fldigi/trunk

« back to all changes in this revision

Viewing changes to src/include/logsupport.h

  • Committer: David Freese
  • Author(s): Kamal Mostafa
  • Date: 2014-01-31 19:01:57 UTC
  • Revision ID: git-v1:8a1d12f07028ba68e2cd326334bce05afabbc464
Avoid nitems fltk kfreebsd collision

  * Avoid 'nitems' macro collision between FreeBSD's
    sys/params.h and fltk's FL/Fl_Check_Browser.H
    (http://www.fltk.org/str.php?L2984)

  * This is version 2: Corrects upstream commit
    "51ead20 Avoid-nitems-fltk-kfreebsd-collision.patch",
    which did not really fix it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#include "qso_db.h"
10
10
#include "adif_io.h"
11
11
 
12
 
// Avoid 'nitems' macro collision in FreeBSD's sys/params.h
13
 
// with fltk's FL/Fl_Check_Browser.H
14
 
// ->nitems() is called by functions in this file
15
 
 
16
 
#undef nitems
17
12
#include "lgbook.h"
18
 
#define FLTK_nitems nitems
19
 
#undef nitems
20
13
 
21
14
#ifdef __WOE32__
22
15
#  define ADIF_SUFFIX "adi"