summarylogtreecommitdiffstats
path: root/rename_based_fix_for_rconfig_on_case_sensitive_systems.patch
blob: a92fe0adba1601244dd00ef1d3e76f57f5ef8dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
From 183c4161893e29f1c673dad3dd2d17d688167701 Mon Sep 17 00:00:00 2001
From: Henry Fredrick Schreiner <henry.fredrick.schreiner@cern.ch>
Date: Fri, 1 Feb 2019 08:41:47 +0100
Subject: [PATCH] Rename based fix for RConfig on case-insensitive systems

(cherry picked from commit 19e4890c9c5e42de75e3d6c63066d16a11ed1766)
---
 build/unix/module.modulemap                    | 4 +++-
 build/win/makeresource.sh                      | 2 +-
 core/base/inc/RConfig.h                        | 6 +++---
 core/base/inc/ROOT/{RConfig.h => RConfig.hxx}  | 0
 core/base/inc/RStipples.h                      | 2 +-
 core/base/inc/Rstrstream.h                     | 2 +-
 core/base/inc/RtypesCore.h                     | 2 +-
 core/base/inc/Strlen.h                         | 2 +-
 core/base/inc/TException.h                     | 2 +-
 core/base/src/String.cxx                       | 2 +-
 core/base/src/TDatime.cxx                      | 2 +-
 core/base/src/TROOT.cxx                        | 2 +-
 core/base/src/TString.cxx                      | 2 +-
 core/clib/inc/snprintf.h                       | 2 +-
 core/clib/inc/strlcpy.h                        | 2 +-
 core/clib/res/mmconfig.h                       | 2 +-
 core/clib/src/snprintf.c                       | 2 +-
 core/clib/src/strlcat.c                        | 2 +-
 core/clib/src/strlcpy.c                        | 2 +-
 core/clingutils/src/RStl.cxx                   | 2 +-
 core/clingutils/src/TClingUtils.cxx            | 2 +-
 core/dictgen/src/TModuleGenerator.cxx          | 2 +-
 core/dictgen/src/rootcling_impl.cxx            | 2 +-
 core/foundation/inc/TClassEdit.h               | 2 +-
 core/lz4/src/ZipLZ4.cxx                        | 2 +-
 core/rootcling_stage1/src/rootcling_stage1.cxx | 2 +-
 core/thread/inc/ThreadLocalStorage.h           | 2 +-
 core/unix/src/TUnixSystem.cxx                  | 2 +-
 graf2d/mathtext/src/fontembed.cxx              | 2 +-
 graf2d/mathtext/src/fontembedps.cxx            | 2 +-
 io/gfal/src/TGFALFile.cxx                      | 2 +-
 io/io/src/TFile.cxx                            | 2 +-
 main/src/hadd.cxx                              | 2 +-
 main/src/pmain.cxx                             | 2 +-
 main/src/rootcling.cxx                         | 2 +-
 misc/memstat/src/TMemStatHook.cxx              | 2 +-
 net/net/src/TApplicationServer.cxx             | 2 +-
 net/net/src/TFTP.cxx                           | 2 +-
 net/rpdutils/src/daemon.cxx                    | 2 +-
 net/rpdutils/src/net.cxx                       | 2 +-
 net/rpdutils/src/netpar.cxx                    | 2 +-
 net/rpdutils/src/rpdconn.cxx                   | 2 +-
 net/rpdutils/src/rpdutils.cxx                  | 3 ++-
 proof/proof/src/TProofServ.cxx                 | 2 +-
 proof/proof/src/TProofServLite.cxx             | 2 +-
 proof/proofd/inc/XrdProofdPlatform.h           | 2 +-
 proof/proofx/src/TXProofServ.cxx               | 2 +-
 roofit/roofitcore/inc/RooFit.h                 | 2 +-
 tree/dataframe/src/RSqliteDS.cxx               | 2 +-
 tree/dataframe/test/datasource_sqlite.cxx      | 2 +-
 tree/tree/src/TTree.cxx                        | 2 +-
 51 files changed, 55 insertions(+), 52 deletions(-)
 rename core/base/inc/ROOT/{RConfig.h => RConfig.hxx} (100%)

diff --git a/build/unix/module.modulemap b/build/unix/module.modulemap
index 5f4f685b2fb..da55cc3b54e 100644
--- a/build/unix/module.modulemap
+++ b/build/unix/module.modulemap
@@ -14,7 +14,9 @@ module ROOT_Foundation_C  {
 module ROOT_Config  {
   // These headers are supposed to be only textually expanded for each TU.
   module "RVersion.h" { textual header "RVersion.h" export * }
-  module "RConfig.h" { textual header "RConfig.h" export * }
+  module "RConfig.h" { header "RConfig.h" export * }
+  module "ROOT/RConfig.h" { header "ROOT/RConfig.h" export * }
+  module "ROOT/RConfig.hxx" { textual header "ROOT/RConfig.hxx" export * }
   module "RConfigure.h" { textual header "RConfigure.h" export * }
   // FIXME: There is little benefit in keeping DllImport as a separate header.
   // The majority of its uses already include Rtypes.h which includes DllImport.
diff --git a/build/win/makeresource.sh b/build/win/makeresource.sh
index d33a1898f32..aab7d3e6371 100755
--- a/build/win/makeresource.sh
+++ b/build/win/makeresource.sh
@@ -56,7 +56,7 @@ cat > $RC <<EOF
 // ROOT version resource file for $FILENAME
 // Generated by $0 on $DATE
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include <windows.h>
 #include <winver.h>
 
diff --git a/core/base/inc/RConfig.h b/core/base/inc/RConfig.h
index cc08a99daca..9f84c71f141 100644
--- a/core/base/inc/RConfig.h
+++ b/core/base/inc/RConfig.h
@@ -13,13 +13,13 @@
 
 /*************************************************************************
  *                                                                       *
- * Old RConfig.h forwarding to ROOT/RConfig.h                            *
+ * Old RConfig.h forwarding to ROOT/RConfig.hxx                            *
  *                                                                       *
- * Please #include ROOT/RConfig.h instead, e.g. to avoid clashes with    *
+ * Please #include ROOT/RConfig.hxx instead, e.g. to avoid clashes with    *
  * R's Rconfig.h                                                         *
  *                                                                       *
  *************************************************************************/
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #endif // ROOT_RConfig_fwd
diff --git a/core/base/inc/ROOT/RConfig.h b/core/base/inc/ROOT/RConfig.hxx
similarity index 100%
rename from core/base/inc/ROOT/RConfig.h
rename to core/base/inc/ROOT/RConfig.hxx
diff --git a/core/base/inc/RStipples.h b/core/base/inc/RStipples.h
index 341248e77c5..fe3b4f1109c 100644
--- a/core/base/inc/RStipples.h
+++ b/core/base/inc/RStipples.h
@@ -11,7 +11,7 @@
 #ifndef ROOT_Stipples
 #define ROOT_Stipples
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 //////////////////////////////////////////////////////////////////////////
 //                                                                      //
diff --git a/core/base/inc/Rstrstream.h b/core/base/inc/Rstrstream.h
index 3d059ab0bf7..5562908f54a 100644
--- a/core/base/inc/Rstrstream.h
+++ b/core/base/inc/Rstrstream.h
@@ -12,7 +12,7 @@
 #ifndef ROOT_Rstrstream
 #define ROOT_Rstrstream
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #if defined(R__ANSISTREAM)
 #  if defined(R__SSTREAM)
diff --git a/core/base/inc/RtypesCore.h b/core/base/inc/RtypesCore.h
index ed7941509c1..21fde2632bc 100644
--- a/core/base/inc/RtypesCore.h
+++ b/core/base/inc/RtypesCore.h
@@ -20,7 +20,7 @@
 //////////////////////////////////////////////////////////////////////////
 
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include <stddef.h> // size_t, NULL
 
diff --git a/core/base/inc/Strlen.h b/core/base/inc/Strlen.h
index 085c402c6df..355780fabc4 100644
--- a/core/base/inc/Strlen.h
+++ b/core/base/inc/Strlen.h
@@ -11,7 +11,7 @@
 #ifndef ROOT_Strlen
 #define ROOT_Strlen
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #ifdef NEED_STRING
 #include <string.h>
diff --git a/core/base/inc/TException.h b/core/base/inc/TException.h
index 450cdd1e39a..0e845f0647b 100644
--- a/core/base/inc/TException.h
+++ b/core/base/inc/TException.h
@@ -29,7 +29,7 @@ struct sigjmp_buf;
 struct jmp_buf;
 #endif
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "DllImport.h"
 
 struct ExceptionContext_t {
diff --git a/core/base/src/String.cxx b/core/base/src/String.cxx
index 436104c0ad9..3661ea3c34a 100644
--- a/core/base/src/String.cxx
+++ b/core/base/src/String.cxx
@@ -15,7 +15,7 @@
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include <string>
 #include "TBuffer.h"
 
diff --git a/core/base/src/TDatime.cxx b/core/base/src/TDatime.cxx
index 1ef321ef448..28993d8a6de 100644
--- a/core/base/src/TDatime.cxx
+++ b/core/base/src/TDatime.cxx
@@ -24,7 +24,7 @@ date/time of data taking events and the like. If absolute time is
 required, use TTimeStamp.
 */
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include <time.h>
 
diff --git a/core/base/src/TROOT.cxx b/core/base/src/TROOT.cxx
index 014739c355d..073b54d3d25 100644
--- a/core/base/src/TROOT.cxx
+++ b/core/base/src/TROOT.cxx
@@ -66,7 +66,7 @@ of a main program creating an interactive version is shown below:
 ~~~
 */
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "RConfigure.h"
 #include "RConfigOptions.h"
 #include "RVersion.h"
diff --git a/core/base/src/TString.cxx b/core/base/src/TString.cxx
index 31673a53b44..a4f2b65b0ce 100644
--- a/core/base/src/TString.cxx
+++ b/core/base/src/TString.cxx
@@ -35,7 +35,7 @@ as a TString, construct a TString from it, eg:
 ~~~
 */
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include <stdlib.h>
 #include <ctype.h>
 #include <list>
diff --git a/core/clib/inc/snprintf.h b/core/clib/inc/snprintf.h
index 4c8c85510ec..05466a001c8 100644
--- a/core/clib/inc/snprintf.h
+++ b/core/clib/inc/snprintf.h
@@ -10,7 +10,7 @@
 #ifndef ROOT_snprintf
 #define ROOT_snprintf
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include <stdio.h>
 
 #ifndef __CINT__
diff --git a/core/clib/inc/strlcpy.h b/core/clib/inc/strlcpy.h
index d457d4a409d..460ac9e8599 100644
--- a/core/clib/inc/strlcpy.h
+++ b/core/clib/inc/strlcpy.h
@@ -9,7 +9,7 @@
 #ifndef ROOT_strlcpy
 #define ROOT_strlcpy
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #ifndef HAS_STRLCPY
 
diff --git a/core/clib/res/mmconfig.h b/core/clib/res/mmconfig.h
index 347c506c685..7adab9a5271 100644
--- a/core/clib/res/mmconfig.h
+++ b/core/clib/res/mmconfig.h
@@ -11,7 +11,7 @@
 #ifndef MMCONFIG_H
 #define MMCONFIG_H
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #ifndef WIN32
 #  ifndef INVALID_HANDLE_VALUE
diff --git a/core/clib/src/snprintf.c b/core/clib/src/snprintf.c
index ec898bad925..b3b90e9840c 100644
--- a/core/clib/src/snprintf.c
+++ b/core/clib/src/snprintf.c
@@ -34,7 +34,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#include <ROOT/RConfig.h>            /* for NEED_SNPRINTF */
+#include <ROOT/RConfig.hxx>            /* for NEED_SNPRINTF */
 
 #if defined(NEED_SNPRINTF) || defined(SNTEST)
 
diff --git a/core/clib/src/strlcat.c b/core/clib/src/strlcat.c
index cbcab1473a8..d543461531c 100644
--- a/core/clib/src/strlcat.c
+++ b/core/clib/src/strlcat.c
@@ -16,7 +16,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include <ROOT/RConfig.h>            /* for HAS_STRLCPY */
+#include <ROOT/RConfig.hxx>            /* for HAS_STRLCPY */
 
 #ifndef HAS_STRLCPY
 
diff --git a/core/clib/src/strlcpy.c b/core/clib/src/strlcpy.c
index 80bc67ce221..16001845bd1 100644
--- a/core/clib/src/strlcpy.c
+++ b/core/clib/src/strlcpy.c
@@ -16,7 +16,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include <ROOT/RConfig.h>            /* for HAS_STRLCPY */
+#include <ROOT/RConfig.hxx>            /* for HAS_STRLCPY */
 
 #ifndef HAS_STRLCPY
 
diff --git a/core/clingutils/src/RStl.cxx b/core/clingutils/src/RStl.cxx
index bd97c1f1300..d7e40c60cc8 100644
--- a/core/clingutils/src/RStl.cxx
+++ b/core/clingutils/src/RStl.cxx
@@ -10,7 +10,7 @@
  *************************************************************************/
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include "RStl.h"
 #include "TClassEdit.h"
diff --git a/core/clingutils/src/TClingUtils.cxx b/core/clingutils/src/TClingUtils.cxx
index 1a9eb1ca565..02abe7a6630 100644
--- a/core/clingutils/src/TClingUtils.cxx
+++ b/core/clingutils/src/TClingUtils.cxx
@@ -24,7 +24,7 @@
 #include <unordered_set>
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "Rtypes.h"
 
 #include "RStl.h"
diff --git a/core/dictgen/src/TModuleGenerator.cxx b/core/dictgen/src/TModuleGenerator.cxx
index b6c35bfaa11..73b406f49c8 100644
--- a/core/dictgen/src/TModuleGenerator.cxx
+++ b/core/dictgen/src/TModuleGenerator.cxx
@@ -20,7 +20,7 @@
 
 #include "TClingUtils.h"
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include "cling/Interpreter/CIFactory.h"
 #include "clang/Basic/SourceManager.h"
diff --git a/core/dictgen/src/rootcling_impl.cxx b/core/dictgen/src/rootcling_impl.cxx
index d301d4c5efa..fdb2647dd76 100644
--- a/core/dictgen/src/rootcling_impl.cxx
+++ b/core/dictgen/src/rootcling_impl.cxx
@@ -167,7 +167,7 @@ const char *rootClingHelp =
 #include "rootcling_impl.h"
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include <iostream>
 #include <iomanip>
diff --git a/core/foundation/inc/TClassEdit.h b/core/foundation/inc/TClassEdit.h
index 391523d5691..fbbb7165123 100644
--- a/core/foundation/inc/TClassEdit.h
+++ b/core/foundation/inc/TClassEdit.h
@@ -13,7 +13,7 @@
 #ifndef ROOT_TClassEdit
 #define ROOT_TClassEdit
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "RConfigure.h"
 #include <stdlib.h>
 #ifdef R__WIN32
diff --git a/core/lz4/src/ZipLZ4.cxx b/core/lz4/src/ZipLZ4.cxx
index 9e7cf3b2d46..8dfcf2cde1b 100644
--- a/core/lz4/src/ZipLZ4.cxx
+++ b/core/lz4/src/ZipLZ4.cxx
@@ -10,7 +10,7 @@
 
 #include "ZipLZ4.h"
 
-#include "ROOT/RConfig.h"
+#include "ROOT/RConfig.hxx"
 
 #include <cinttypes>
 #include <cstdint>
diff --git a/core/rootcling_stage1/src/rootcling_stage1.cxx b/core/rootcling_stage1/src/rootcling_stage1.cxx
index cd60a9c8c0f..440efe79f96 100644
--- a/core/rootcling_stage1/src/rootcling_stage1.cxx
+++ b/core/rootcling_stage1/src/rootcling_stage1.cxx
@@ -10,7 +10,7 @@
 
 #include "rootcling_impl.h"
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include <stdlib.h>
 
 extern "C" {
diff --git a/core/thread/inc/ThreadLocalStorage.h b/core/thread/inc/ThreadLocalStorage.h
index 99bf25292eb..51ee894adf1 100644
--- a/core/thread/inc/ThreadLocalStorage.h
+++ b/core/thread/inc/ThreadLocalStorage.h
@@ -61,7 +61,7 @@
 #include "RtypesCore.h"
 #endif
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include "RConfigure.h"
 
diff --git a/core/unix/src/TUnixSystem.cxx b/core/unix/src/TUnixSystem.cxx
index e5ac06b2968..cad40f537ed 100644
--- a/core/unix/src/TUnixSystem.cxx
+++ b/core/unix/src/TUnixSystem.cxx
@@ -18,7 +18,7 @@
 //////////////////////////////////////////////////////////////////////////
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "TUnixSystem.h"
 #include "TROOT.h"
 #include "TError.h"
diff --git a/graf2d/mathtext/src/fontembed.cxx b/graf2d/mathtext/src/fontembed.cxx
index cf38f693f90..4bfe6b17ba6 100644
--- a/graf2d/mathtext/src/fontembed.cxx
+++ b/graf2d/mathtext/src/fontembed.cxx
@@ -25,7 +25,7 @@
 #endif
 
 // ROOT integration
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #ifdef R__BYTESWAP
 #ifndef LITTLE_ENDIAN
 #define LITTLE_ENDIAN 1
diff --git a/graf2d/mathtext/src/fontembedps.cxx b/graf2d/mathtext/src/fontembedps.cxx
index 59a9996413b..0947f015b82 100644
--- a/graf2d/mathtext/src/fontembedps.cxx
+++ b/graf2d/mathtext/src/fontembedps.cxx
@@ -25,7 +25,7 @@
 #endif
 
 // ROOT integration
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #ifdef R__BYTESWAP
 #ifndef LITTLE_ENDIAN
 #define LITTLE_ENDIAN 1
diff --git a/io/gfal/src/TGFALFile.cxx b/io/gfal/src/TGFALFile.cxx
index c99d01b0849..fd2d458a606 100644
--- a/io/gfal/src/TGFALFile.cxx
+++ b/io/gfal/src/TGFALFile.cxx
@@ -44,7 +44,7 @@ Note that for the TGFALFile plugin to work, all these pathnames
 should be prepended by gfal:.
 */
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "TROOT.h"
 #include "TUrl.h"
 
diff --git a/io/io/src/TFile.cxx b/io/io/src/TFile.cxx
index 4c082f7930c..2500990c8e3 100644
--- a/io/io/src/TFile.cxx
+++ b/io/io/src/TFile.cxx
@@ -71,7 +71,7 @@ End_Macro
 The structure of a directory is shown in TDirectoryFile::TDirectoryFile
 */
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #ifdef R__LINUX
 // for posix_fadvise
diff --git a/main/src/hadd.cxx b/main/src/hadd.cxx
index a30f76e59a9..a0db30b0f8c 100644
--- a/main/src/hadd.cxx
+++ b/main/src/hadd.cxx
@@ -70,7 +70,7 @@
            Toby Burnett implemented the possibility to use indirect files.
  */
 #include "Compression.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "ROOT/TIOFeatures.hxx"
 #include <string>
 #include "TFile.h"
diff --git a/main/src/pmain.cxx b/main/src/pmain.cxx
index 921cbd46ef6..168a136d87e 100644
--- a/main/src/pmain.cxx
+++ b/main/src/pmain.cxx
@@ -30,7 +30,7 @@
 #include <stdlib.h>
 #include <sys/types.h>
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "RConfigure.h"
 #ifdef R__AFS
 #include "TAFS.h"
diff --git a/main/src/rootcling.cxx b/main/src/rootcling.cxx
index 2d9660248a0..09aa0bd8ef7 100644
--- a/main/src/rootcling.cxx
+++ b/main/src/rootcling.cxx
@@ -12,7 +12,7 @@
 #include "rootclingIO.h"
 #include "rootcling_impl.h"
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "TSystem.h"
 
 extern "C" {
diff --git a/misc/memstat/src/TMemStatHook.cxx b/misc/memstat/src/TMemStatHook.cxx
index 45f3f3736e4..e17d8347e6e 100644
--- a/misc/memstat/src/TMemStatHook.cxx
+++ b/misc/memstat/src/TMemStatHook.cxx
@@ -12,7 +12,7 @@
 #include <iostream>
 // MemStat
 #include "TMemStatHook.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 // TODO: move it to a separate file
 #if defined(__APPLE__)
diff --git a/net/net/src/TApplicationServer.cxx b/net/net/src/TApplicationServer.cxx
index 1916f7bfafa..c57fa94f291 100644
--- a/net/net/src/TApplicationServer.cxx
+++ b/net/net/src/TApplicationServer.cxx
@@ -19,7 +19,7 @@
 //////////////////////////////////////////////////////////////////////////
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "Riostream.h"
 
 #ifdef WIN32
diff --git a/net/net/src/TFTP.cxx b/net/net/src/TFTP.cxx
index 718ecba3d4b..85a29167e98 100644
--- a/net/net/src/TFTP.cxx
+++ b/net/net/src/TFTP.cxx
@@ -19,7 +19,7 @@
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include <fcntl.h>
 #include <errno.h>
diff --git a/net/rpdutils/src/daemon.cxx b/net/rpdutils/src/daemon.cxx
index 90151846ea8..a3f65fae445 100644
--- a/net/rpdutils/src/daemon.cxx
+++ b/net/rpdutils/src/daemon.cxx
@@ -38,7 +38,7 @@
 #include <sys/wait.h>
 #endif
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #ifndef NOFILE
 #   define NOFILE 0
diff --git a/net/rpdutils/src/net.cxx b/net/rpdutils/src/net.cxx
index 84b1fc83ef9..981bfa18e96 100644
--- a/net/rpdutils/src/net.cxx
+++ b/net/rpdutils/src/net.cxx
@@ -17,7 +17,7 @@
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #include <stdio.h>
 #include <string.h>
diff --git a/net/rpdutils/src/netpar.cxx b/net/rpdutils/src/netpar.cxx
index 206c7438aac..00f759a6c9c 100644
--- a/net/rpdutils/src/netpar.cxx
+++ b/net/rpdutils/src/netpar.cxx
@@ -18,7 +18,7 @@
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 // avoid warning due to wrong bzero prototype (used by FD_ZERO macro)
 #include <stdio.h>
diff --git a/net/rpdutils/src/rpdconn.cxx b/net/rpdutils/src/rpdconn.cxx
index 7b3a2ad0f66..7fb6fa89414 100644
--- a/net/rpdutils/src/rpdconn.cxx
+++ b/net/rpdutils/src/rpdconn.cxx
@@ -32,7 +32,7 @@
 #include <sys/types.h>
 #include <sys/un.h>
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 #define RPD_MAXLEN 8192
 
diff --git a/net/rpdutils/src/rpdutils.cxx b/net/rpdutils/src/rpdutils.cxx
index b80190ab37a..a29ffed71e4 100644
--- a/net/rpdutils/src/rpdutils.cxx
+++ b/net/rpdutils/src/rpdutils.cxx
@@ -18,7 +18,8 @@
 //////////////////////////////////////////////////////////////////////////
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include "TError.h"
+#include <ROOT/RConfig.hxx>
 
 #include <ctype.h>
 #include <fcntl.h>
diff --git a/proof/proof/src/TProofServ.cxx b/proof/proof/src/TProofServ.cxx
index 9868f9f0161..61d6c96c7b8 100644
--- a/proof/proof/src/TProofServ.cxx
+++ b/proof/proof/src/TProofServ.cxx
@@ -20,7 +20,7 @@ master server.
 */
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "Riostream.h"
 
 #ifdef WIN32
diff --git a/proof/proof/src/TProofServLite.cxx b/proof/proof/src/TProofServLite.cxx
index e65e77e095e..b395c7e3482 100644
--- a/proof/proof/src/TProofServLite.cxx
+++ b/proof/proof/src/TProofServLite.cxx
@@ -30,7 +30,7 @@ eliminated, optimizing the number of messages exchanged and created / destroyed.
 //////////////////////////////////////////////////////////////////////////
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "Riostream.h"
 
 #ifdef WIN32
diff --git a/proof/proofd/inc/XrdProofdPlatform.h b/proof/proofd/inc/XrdProofdPlatform.h
index 8c468964bc3..3fd8034ecf6 100644
--- a/proof/proofd/inc/XrdProofdPlatform.h
+++ b/proof/proofd/inc/XrdProofdPlatform.h
@@ -23,7 +23,7 @@
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 // 32 or 64 bits
 #if ((defined(__hpux) && defined(__LP64__)) || \
diff --git a/proof/proofx/src/TXProofServ.cxx b/proof/proofx/src/TXProofServ.cxx
index 46c8ab0d27f..5f7b450e462 100644
--- a/proof/proofx/src/TXProofServ.cxx
+++ b/proof/proofx/src/TXProofServ.cxx
@@ -18,7 +18,7 @@ for the underlying connection technology.
 */
 
 #include "RConfigure.h"
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "Riostream.h"
 
 #ifdef WIN32
diff --git a/roofit/roofitcore/inc/RooFit.h b/roofit/roofitcore/inc/RooFit.h
index 240cae4db44..0920855a7bd 100644
--- a/roofit/roofitcore/inc/RooFit.h
+++ b/roofit/roofitcore/inc/RooFit.h
@@ -16,7 +16,7 @@
 #ifndef ROO_FIT
 #define ROO_FIT
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 
 // Global include file to fix occasional compiler issues
 // An error in the construction of the system and C++ header files on
diff --git a/tree/dataframe/src/RSqliteDS.cxx b/tree/dataframe/src/RSqliteDS.cxx
index 0b7586a988f..fa168c9434d 100644
--- a/tree/dataframe/src/RSqliteDS.cxx
+++ b/tree/dataframe/src/RSqliteDS.cxx
@@ -17,7 +17,7 @@
 // clang-format on
 
 #include <ROOT/RSqliteDS.hxx>
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include <ROOT/RDF/Utils.hxx>
 #include <ROOT/RMakeUnique.hxx>
 
diff --git a/tree/dataframe/test/datasource_sqlite.cxx b/tree/dataframe/test/datasource_sqlite.cxx
index 73028008467..97004e94d7d 100644
--- a/tree/dataframe/test/datasource_sqlite.cxx
+++ b/tree/dataframe/test/datasource_sqlite.cxx
@@ -1,4 +1,4 @@
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include <ROOT/RDataFrame.hxx>
 #include <ROOT/RMakeUnique.hxx>
 #include <ROOT/RSqliteDS.hxx>
diff --git a/tree/tree/src/TTree.cxx b/tree/tree/src/TTree.cxx
index ffd238d3136..80ce55f3800 100644
--- a/tree/tree/src/TTree.cxx
+++ b/tree/tree/src/TTree.cxx
@@ -333,7 +333,7 @@ End_Macro
 ~~~
 */
 
-#include <ROOT/RConfig.h>
+#include <ROOT/RConfig.hxx>
 #include "TTree.h"
 
 #include "ROOT/TIOFeatures.hxx"