Skip to content

Commit 5518b1e

Browse files
committed
Fix STB double linking
1 parent d879433 commit 5518b1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/mtmd/clip.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
#include "ggml-backend.h"
1212
#include "gguf.h"
1313

14+
#ifndef SKIP_STB_IMAGE_IMPLEMENTATION
1415
#define STB_IMAGE_IMPLEMENTATION
16+
#else
17+
#include <stdio.h>
18+
#include <stdarg.h>
19+
#endif
1520
#include "stb_image.h"
1621

1722
#include <cassert>

0 commit comments

Comments
 (0)