summaryrefslogtreecommitdiff
path: root/src/util/thread.h
Commit message (Collapse)AuthorAgeFilesLines
* thread: avoid warnings when building without threadsEdward Thomson2022-11-231-19/+20
| | | | | | `git__noop` takes no arguments, so a simple `#define func(a) git__noop` will produce warnings about the unused `a`. Introduce `git__noop_args` to swallow arguments and avoid that warning.
* refactor: make util an object libraryEdward Thomson2022-02-221-0/+479
Instead of simply including the utility files directly, make them a cmake object library for easy reusability between other projects within libgit2. Now the top-level `src` is responsible for platform selection, while the next-level `libgit2` and `util` configurations are responsible for identifying what objects they include.