-
Notifications
You must be signed in to change notification settings - Fork 6k
Wrap strdup to use compliant name on Windows #16372
Wrap strdup to use compliant name on Windows #16372
Conversation
A number of POSIX methods were renamed on Windows to match standards requirements, giving deprecation warnings when calling strdup on Windows. This adds a wrapper, to allow calling _strdup on Windows instead. Part of flutter#16256
Let me know what you think of this approach. The other option is to define |
I'd prefer |
But your call. |
The bot is mad at the infinite recursion in your posix implementation. Prepend |
Well, since the goal is to switch to using clang on the bots, this will fail, so people won't actually have to remember. |
It will fail on the bots though instead of the local development environment of someone on a linux workstation right? In any case, either way is fine. This is still an improvement. |
I'm going to go with this for now and we can revisit if it becomes a pain point; I'd like to avoid deliberately using deprecated code indefinitely in code we control. |
* d5442b8 Roll src/third_party/skia bc3307c395e2..ebc00f97fab1 (21 commits) (flutter/engine#16429) * 76b291a Added a plugin method that gets called when the engine is about to be deleted (flutter/engine#16336) * 07f25c5 fix bad reference to maxDiffRatePercent (flutter/engine#16440) * 41d50c2 Reland #16206: "[web] Correct getPositionForOffset for multi-line paragraphs" (flutter/engine#16365) * f25d325 [fuchsia] change kMaxFramesInFlight to 3 (flutter/engine#16425) * 473f559 Suppress some deprecation warnings on Windows (flutter/engine#16416) * 2e34ad6 Roll fuchsia/sdk/core/mac-amd64 from ubThi... to fvWgE... (flutter/engine#16454) * 47c02e6 Roll src/third_party/skia ebc00f97fab1..cbf79b95c2d4 (4 commits) (flutter/engine#16456) * 3d1b112 Roll buildroot (flutter/engine#16419) * 28e6637 Add explicit casts to printing of function pointers (flutter/engine#16370) * 9ad81da Wrap strdup to use compliant name on Windows (flutter/engine#16372) * 9708e52 Roll rapidjson (flutter/engine#16347) * f06ebba Include <memory> in hb_wrapper.h because unique_ptr is used. (flutter/engine#16442) * e530376 Roll fuchsia/sdk/core/linux-amd64 from VJv0H... to A9STP... (flutter/engine#16457) * 4cc41ae Roll src/third_party/skia cbf79b95c2d4..4721e067812f (1 commits) (flutter/engine#16459) * 2f233ed Roll src/third_party/skia 4721e067812f..f6e3eaf05150 (1 commits) (flutter/engine#16461) * b0b0ed8 Roll src/third_party/skia f6e3eaf05150..cc21d0c1f2ce (1 commits) (flutter/engine#16463) * 7fea936 Roll src/third_party/skia cc21d0c1f2ce..116b33e8ab21 (3 commits) (flutter/engine#16466) * 001b3a0 Roll src/third_party/skia 116b33e8ab21..7f36405ea3ec (3 commits) (flutter/engine#16471) * f3ce90e Reset width/height before deallocation for Safari allocation bug. (flutter/engine#16469)
A number of POSIX methods were renamed on Windows to match standards requirements, giving deprecation warnings when calling strdup on Windows. This adds a wrapper, to allow calling _strdup on Windows instead. Part of flutter#16256
This reverts commit 32cc31b.
A number of POSIX methods were renamed on Windows to match standards
requirements, giving deprecation warnings when calling strdup on Windows.
This adds a wrapper, to allow calling _strdup on Windows instead.
Part of flutter/flutter#16256