Missing $IFDEF in gtk2 for MacOS
## Summary
<!-- Summarize the bug encountered concisely -->
Compile error for gtk2 on MacOS
## System Information
<!-- The more information are provided the easier it is to replicate the bug -->
- **Operating system:** MacOS
- **Processor architecture:** unrelated
- **Compiler version:** 3.2.2
- **Device:** unrelated
## Steps to reproduce
<!-- How one can reproduce the issue - this is very important! -->
Create a project that uses gtk2, and try compiling on MacOS
## Example Project
<!-- If possible, please create an example project that exhibits the problematic
behavior, and link to it here in the bug report. -->
## What is the current bug behavior?
<!-- What actually happens -->
Compiler complains that `FWSFrameRect` is not known when compiling `gtk2widgetset.inc`.
## What is the expected (correct) behavior?
<!-- What you should see instead -->
It should compile. ;-)
## Relevant logs and/or screenshots
<!-- Paste any relevant logs - please use code blocks (```) to format console output, logs, and code, as
it's very hard to read otherwise.
You can also use syntax highlighting for Pascal with: ```pascal the code```
For more information see https://docs.gitlab.com/ee/user/markdown.html -->
`FWSFrameRect` appears to be relevant for X11 environments, so it is created inside an `$IFDEF HASX`.
MacOS doesn't use `HASX`, so trying to access it fails.
## Possible fixes
<!-- If you can, link to the line of code that might be responsible for the problem -->
```
--- share/lazarus/lcl/interfaces/gtk2/gtk2widgetset.in~ 2022-01-02 11:01:25
+++ share/lazarus/lcl/interfaces/gtk2/gtk2widgetset.inc 2023-05-27 22:53:34
@@ -1055,7 +1055,9 @@
FMainPoll := nil;
if not FIsLibraryInstance then
begin
+{$IFDEF HASX}
FWSFrameRect := Rect(0, 0, 0, 0);
+{$ENDIF}
Gtk2MPF := g_main_context_get_poll_func(g_main_context_default);
g_main_context_set_poll_func(g_main_context_default, @Gtk2PollFunction);
end else
```
issue