summaryrefslogtreecommitdiff
path: root/tools/tool.h
Commit message (Collapse)AuthorAgeFilesLines
* configure: avoid repeative inclusion of configure.hZdenek Kabelac2018-12-211-2/+0
| | | | | | | | | | Since configure.h is a generated header and it's missing traditional ifdefs preambule - it can be included & parsed multiple times. Normally compiler is fine when defines have same value and there is no warning - yet we don't need to parse this several times and by adding -include directive we can ensure every file in the package is rightly compile with configure.h as the first header file.
* headers: use configure.h as 1st. headerZdenek Kabelac2018-12-141-4/+2
| | | | | | | | | | | Ensure configure.h is always 1st. included header. Maybe we could eventually introduce gcc -include option, but for now this better uses dependency tracking. Also move _REENTRANT and _GNU_SOURCE into configure.h so it doesn't need to be present in various source files. This ensures consistent compilation of headers like stdio.h since it may produce different declaration.
* various: some missing #include zalloc.hJoe Thornber2018-06-081-0/+1
|
* device_mapper: rename libdevmapper.h -> all.hJoe Thornber2018-06-081-1/+1
| | | | | I'm paranoid a file will include the global one in /usr/include by accident.
* device-mapper: Fork libdm internally.Joe Thornber2018-05-161-1/+1
| | | | | | | | | | | | The device-mapper directory now holds a copy of libdm source. At the moment this code is identical to libdm. Over time code will migrate out to appropriate places (see doc/refactoring.txt). The libdm directory still exists, and contains the source for the libdevmapper shared library, which we will continue to ship (though not neccessarily update). All code using libdm should now use the version in device-mapper.
* build: Don't generate symlinks in include/ dirJoe Thornber2018-05-141-2/+2
| | | | | | | As we start refactoring the code to break dependencies (see doc/refactoring.txt), I want us to use full paths in the includes (eg, #include "base/data-struct/list.h"). This makes it more obvious when we're breaking abstraction boundaries, eg, including a file in metadata/ from base/
* build: add -D_FILE_OFFSET_BITS=64Joe Thornber2018-05-021-1/+0
| | | | | | | I don't like having this in a common header because it means you end up including too much and causing unneccessary dependencies. eg, lib/misc/lib.h includes libdevmapper.h, internationalisation, and logging stuff.
* doc: change fsf addressZdenek Kabelac2016-01-211-1/+1
| | | | | Hmm rpmlint suggest fsf is using a different address these days, so lets keep it up-to-date
* include: Standardise around new tool.h.Alasdair G Kergon2015-07-061-0/+31