-
Notifications
You must be signed in to change notification settings - Fork 0
fix(MESHAGEN-006): CU-86akhf8u3 4 review findings across 3 files #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,14 @@ | ||
| /* | ||
| * linux_events.h | ||
| * mac_events.h | ||
| * | ||
| * Created on: Jul 8, 2011 | ||
| * Author: Intel | ||
| */ | ||
|
|
||
| #ifndef LINUX_EVENTS_H_ | ||
| #define LINUX_EVENTS_H_ | ||
| #ifndef MAC_EVENTS_H_ | ||
| #define MAC_EVENTS_H_ | ||
|
|
||
| #ifdef __APPLE__ | ||
| #include <Carbon/Carbon.h> | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ Unconditional Carbon.h include breaks non-macOS builds Wrapped the macOS-only body of meshcore/KVM/MacOS/mac_events.h (the π€ Prompt for AI agentsfix confidence: π‘ 60 medium β react π/π to teach the reviewer |
||
| #include <string.h> | ||
| #include <stdio.h> | ||
|
|
@@ -379,4 +380,7 @@ extern void MouseAction(double absX, double absY, int button, short wheel); | |
| extern void KeyAction(unsigned char vk, int up); | ||
| extern void KeyActionUnicode(uint16_t unicode, int up); | ||
|
|
||
| #endif /* LINUX_EVENTS_H_ */ | ||
| #endif /* __APPLE__ */ | ||
|
|
||
| #endif /* MAC_EVENTS_H_ */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,13 +19,15 @@ limitations under the License. | |
| #include <crtdbg.h> | ||
| #endif | ||
|
|
||
| #if defined(WIN32) | ||
| #if defined(WINSOCK2) | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ WINSOCK2/WINSOCK1 headers included without a WIN32 guard Wrapped the π€ Prompt for AI agentsfix confidence: π’ 92 high β react π/π to teach the reviewer |
||
| #include <winsock2.h> | ||
| #include <ws2tcpip.h> | ||
| #elif defined(WINSOCK1) | ||
| #include <winsock.h> | ||
| #include <wininet.h> | ||
| #endif | ||
| #endif | ||
|
|
||
| #include "ILibParsers.h" | ||
| #include "ILibAsyncServerSocket.h" | ||
|
|
@@ -791,3 +793,4 @@ void ILibAsyncServerSocket_SSL_SetSink(ILibAsyncServerSocket_ServerModule AsyncS | |
| ((struct ILibAsyncServerSocketModule*)AsyncServerSocketModule)->OnSSLContext = handler; | ||
| } | ||
| #endif | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,10 +21,9 @@ limitations under the License. | |
| #include "stdafx.h" | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ WinSock2.h/WS2tcpip.h included unconditionally in WebRTC.cpp Moved the previously unconditional π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
| #include "WebRTC.h" | ||
|
|
||
| #if defined(WIN32) | ||
| #include <WinSock2.h> | ||
| #include <WS2tcpip.h> | ||
|
|
||
| #if defined(WIN32) | ||
| #define _CRTDBG_MAP_ALLOC | ||
| #include <crtdbg.h> | ||
| #endif | ||
|
|
@@ -469,4 +468,4 @@ extern "C" | |
| return(ILibSCTP_Debug_SetDebugCallback(((void**)connection)[0], debugField, handler)); | ||
| } | ||
| #endif | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π Include guard macro name mismatches actual file (LINUX_EVENTS_H_ in mac_events.h)
Changed the include guard from
LINUX_EVENTS_H_toMAC_EVENTS_H_(both the#ifndef/#defineat the top and the trailing#endifcomment), and corrected the header comment from "linux_events.h" to "mac_events.h", exactly as suggested, eliminating the guard collision risk with the Linux counterpart header.π€ Prompt for AI agents
fix confidence: π’ 90 high β react π/π to teach the reviewer