- Notifications
You must be signed in to change notification settings - Fork5k
Commitd1146dc
committed
oauth: Rename macro to avoid collisions on Windows
Our json parsing defined the macros OPTIONAL and REQUIRED to decorate thestructs with for increased readability. This however collides with macrosin the <windef.h> header on Windows.../src/interfaces/libpq/fe-auth-oauth-curl.c:398:9: warning: "OPTIONAL" redefined 398 | #define OPTIONAL false | ^~~~~~~~In file included from D:/a/_temp/msys64/ucrt64/include/windef.h:9, from D:/a/_temp/msys64/ucrt64/include/windows.h:69, from D:/a/_temp/msys64/ucrt64/include/winsock2.h:23, from ../src/include/port/win32_port.h:60, from ../src/include/port.h:24, from ../src/include/c.h:1331, from ../src/include/postgres_fe.h:28, from ../src/interfaces/libpq/fe-auth-oauth-curl.c:16:include/minwindef.h:65:9: note: this is the location of the previous definition 65 | #define OPTIONAL | ^~~~~~~~Rename to avoid compilation errors in anticipation of implementingsupport for Windows.Reported-by: Dave Cramer (on PostgreSQL Hacking Discord)1 parent03366b6 commitd1146dc
1 file changed
+17
-17
lines changedLines changed: 17 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
394 | 394 |
| |
395 | 395 |
| |
396 | 396 |
| |
397 |
| - | |
398 |
| - | |
| 397 | + | |
| 398 | + | |
399 | 399 |
| |
400 | 400 |
| |
401 | 401 |
| |
| |||
844 | 844 |
| |
845 | 845 |
| |
846 | 846 |
| |
847 |
| - | |
848 |
| - | |
| 847 | + | |
| 848 | + | |
849 | 849 |
| |
850 | 850 |
| |
851 | 851 |
| |
| |||
857 | 857 |
| |
858 | 858 |
| |
859 | 859 |
| |
860 |
| - | |
861 |
| - | |
| 860 | + | |
| 861 | + | |
862 | 862 |
| |
863 | 863 |
| |
864 | 864 |
| |
| |||
955 | 955 |
| |
956 | 956 |
| |
957 | 957 |
| |
958 |
| - | |
959 |
| - | |
960 |
| - | |
961 |
| - | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
962 | 962 |
| |
963 | 963 |
| |
964 | 964 |
| |
965 | 965 |
| |
966 | 966 |
| |
967 |
| - | |
| 967 | + | |
968 | 968 |
| |
969 | 969 |
| |
970 | 970 |
| |
971 | 971 |
| |
972 | 972 |
| |
973 | 973 |
| |
974 |
| - | |
975 |
| - | |
| 974 | + | |
| 975 | + | |
976 | 976 |
| |
977 | 977 |
| |
978 | 978 |
| |
| |||
1010 | 1010 |
| |
1011 | 1011 |
| |
1012 | 1012 |
| |
1013 |
| - | |
| 1013 | + | |
1014 | 1014 |
| |
1015 |
| - | |
| 1015 | + | |
1016 | 1016 |
| |
1017 | 1017 |
| |
1018 | 1018 |
| |
| |||
1069 | 1069 |
| |
1070 | 1070 |
| |
1071 | 1071 |
| |
1072 |
| - | |
1073 |
| - | |
| 1072 | + | |
| 1073 | + | |
1074 | 1074 |
| |
1075 | 1075 |
| |
1076 | 1076 |
| |
|
0 commit comments
Comments
(0)