Commit graph

8 commits

Author SHA1 Message Date
Christoph Berg
ed39ebb5ee lib/precise_time.c: Remove dead code
The last branch of `#if _POSIX_TIMERS` was missing a declaration of
"showme". Since that variable is not used anywhere, just drop it.
2025-09-07 17:41:52 +02:00
Daniele Forsi IU5HKX
39e155efe7 Fix include config.h
It should be included, with its path, before any hamlib include
and before any #ifdef that uses the symbols that it defines.
2025-08-30 11:18:51 +02:00
George Baltz N3GB
47dae3879d Fix compiler errors with strict C23 standards
Fix missing/misplaced '#include "config.h"' statements. Fixes missing
  function prototypes, unknown type definitions, etc. Allows configuration
  of GCC with CFLAGS="-std=c23" instead of using default -std=gnu23.

Don't know about CLANG, MSVC, MinGW, etc, but using
gwb@stitch:~> gcc --version
gcc (SUSE Linux) 15.1.1 20250714
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hamlib can compile in strict C23 mode, or previous standard levels.
2025-07-22 11:07:33 -04:00
Mike Black W9MDB
d20a235860 Fix MacOS warning in precise_time.c 2024-09-08 08:55:06 -05:00
Mike Black W9MDB
e267c62764 astyle files 2023-12-16 11:37:58 -06:00
Mike Black W9MDB
97b341eb3f Fix precise_time.c 2023-08-02 22:19:20 -05:00
Mike Black W9MDB
428500bb1c Fix cppcheck error
https://github.com/Hamlib/Hamlib/issues/1350
2023-08-02 12:37:36 -05:00
Mike Black W9MDB
d3b912aadb Add precise_time.c to misc to help speed up Windows
https://github.com/Hamlib/Hamlib/issues/1290
2023-05-15 11:45:40 -05:00