[office/tellico/4.2] src/3rdparty/btparse: Cleaner tweak to src/3rdparty/btparse/btparse.h

Robby Stephenson <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 74c587183af97aa0aed238d9126d598b9486f144 by Robby Stephenson.
Committed on 16/08/2026 at 22:58.
Pushed by rstephenson into branch '4.2'.

Cleaner tweak to src/3rdparty/btparse/btparse.h

M  +1    -4    src/3rdparty/btparse/btparse.h

https://invent.kde.org/office/tellico/-/commit/74c587183af97aa0aed238d9126d598b9486f144

diff --git a/src/3rdparty/btparse/btparse.h b/src/3rdparty/btparse/btparse.h
index 87f684ffc..1e62b731e 100644
--- a/src/3rdparty/btparse/btparse.h
+++ b/src/3rdparty/btparse/btparse.h
@@ -360,13 +360,10 @@ char * bt_format_name (bt_name * name, bt_name_format * format);
 #undef _POSIX_C_SOURCE
 
 // If POSIX_SOURCE existed before, bring back the saved value
-#undef _POSIX_C_SOURCE
+// otherwise leave the set value, avoiding having it undefined
 #ifdef TEMP_SAVE_POSIX_C_SOURCE
   #define _POSIX_C_SOURCE TEMP_SAVE_POSIX_C_SOURCE
   #undef TEMP_SAVE_POSIX_C_SOURCE
-#else
-// revert back to what had been the default (i.e. don't leave _POSIX_C_SOURCE undefined)
-  #define _POSIX_C_SOURCE 200809L
 #endif
 
 #endif /* BTPARSE_H */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.