Skip to content

Commit

Permalink
Mark cpp functions as extern
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Nov 14, 2024
1 parent 3fd453f commit 6003cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions extras/scroll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ void unregisterScrollClass(void)
logLastError(L"error unregistering uiScroll window class");
}

extern "C" {
void unregisterScrollClass(void);
ATOM registerScrollClass(HICON hDefaultIcon, HCURSOR hDefaultCursor);
}

static void scrollto(uiScroll *a, int which, struct scrollParams *p, int pos)
{
SCROLLINFO si;
Expand Down
6 changes: 3 additions & 3 deletions windows/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include "uipriv_windows.hpp"
#include "attrstr.hpp"

int extern_win_init(HICON hDefaultIcon, HCURSOR hDefaultCursor);
ATOM registerScrollClass(HICON hDefaultIcon, HCURSOR hDefaultCursor);
int unregisterScrollClass(void);
extern int extern_win_init(HICON hDefaultIcon, HCURSOR hDefaultCursor);
extern ATOM registerScrollClass(HICON hDefaultIcon, HCURSOR hDefaultCursor);
extern int unregisterScrollClass(void);

HINSTANCE hInstance;
int nCmdShow;
Expand Down

0 comments on commit 6003cfe

Please sign in to comment.