Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit555eb1a

Browse files
committed
Remove obsolete ifdefs
Commit8dace66 added #ifdefs for anumber of errno symbols because they were not present on Windows.Later, commit125ad53 addedreplacement #defines for some of those symbols. So some of thechanges from the first commit are made dead code by the second commitand can now be removed.Discussion:https://www.postgresql.org/message-id/flat/6dee8574-b0ad-fc49-9c8c-2edc796f0033@2ndquadrant.com
1 parent8a58347 commit555eb1a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

‎src/port/strerror.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,10 @@ get_errno_symbol(int errnum)
118118
return"E2BIG";
119119
caseEACCES:
120120
return"EACCES";
121-
#ifdefEADDRINUSE
122121
caseEADDRINUSE:
123122
return"EADDRINUSE";
124-
#endif
125-
#ifdefEADDRNOTAVAIL
126123
caseEADDRNOTAVAIL:
127124
return"EADDRNOTAVAIL";
128-
#endif
129125
caseEAFNOSUPPORT:
130126
return"EAFNOSUPPORT";
131127
#ifdefEAGAIN
@@ -176,10 +172,8 @@ get_errno_symbol(int errnum)
176172
return"EINVAL";
177173
caseEIO:
178174
return"EIO";
179-
#ifdefEISCONN
180175
caseEISCONN:
181176
return"EISCONN";
182-
#endif
183177
caseEISDIR:
184178
return"EISDIR";
185179
#ifdefELOOP
@@ -216,20 +210,16 @@ get_errno_symbol(int errnum)
216210
return"ENOSPC";
217211
caseENOSYS:
218212
return"ENOSYS";
219-
#ifdefENOTCONN
220213
caseENOTCONN:
221214
return"ENOTCONN";
222-
#endif
223215
caseENOTDIR:
224216
return"ENOTDIR";
225217
#if defined(ENOTEMPTY)&& (ENOTEMPTY!=EEXIST)/* same code on AIX */
226218
caseENOTEMPTY:
227219
return"ENOTEMPTY";
228220
#endif
229-
#ifdefENOTSOCK
230221
caseENOTSOCK:
231222
return"ENOTSOCK";
232-
#endif
233223
#ifdefENOTSUP
234224
caseENOTSUP:
235225
return"ENOTSUP";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp