forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit06dca17
committed
Re-allow building on Microsoft Visual Studio 2013.
In commit450ee70 I supposed that all platforms we now care about havesnprintf(), since that's required by C99. Turns out that Microsoft didnot get around to adding that until VS2015. We've dropped support forVS2013 as of HEAD (cf6203583), but not in the back branches, so adda hack for this in the back branches only.There's no easy shortcut to an exact emulation of standard snprintfin VS2013, but fortunately we don't need one: this code was just finewith using sprintf before450ee70, so we can make it do so againon that platform (and any others where the problem might crop up).Per bug #17681 from Daisuke Higuchi. Back-patch to v12, like theprevious patch.Discussion:https://postgr.es/m/17681-485ba2ec13e7f392@postgresql.org1 parentfc0d1ec commit06dca17
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 |
| |
113 | 123 |
| |
114 | 124 |
| |
|
0 commit comments
Comments
(0)