Skip to content

Commit 3c1242a

Browse files
committed
fix missing imports
1 parent 6089b0a commit 3c1242a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

common/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ add_library(${TARGET} STATIC
6868
sampling.h
6969
train.cpp
7070
train.h
71+
vision.h
72+
vision.cpp
7173
)
7274

7375
if (BUILD_SHARED_LIBS)

common/vision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ llama_img * load_image_from_file(const char * fname) {
2626
// for (int y = 0; y < ny; y++) {
2727
// for (int x = 0; x < nx; x++) {
2828
// unsigned char * pix = img + x*nc + y*nc*nx;
29-
// printf("%02x%02x%02x ", pix[0], pix[1], pix[2]);
29+
// printf("%02x%02x%02xload_image_from_file ", pix[0], pix[1], pix[2]);
3030
// }
3131
// printf("\n");
3232
// }

examples/llava/clip.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
#include <vector>
3838
#include <sstream>
3939
#include <cinttypes>
40-
#include <limits>
40+
#include <limits.h>
41+
#include <cstdarg>
4142

4243
#define LOG_INF(...) do { fprintf(stdout, __VA_ARGS__); } while (0)
4344
#define LOG_WRN(...) do { fprintf(stderr, __VA_ARGS__); } while (0)

0 commit comments

Comments
 (0)