--- old/src/java.desktop/share/native/libawt/awt/image/dither.c 2018-03-28 12:27:54.306048991 +0200 +++ new/src/java.desktop/share/native/libawt/awt/image/dither.c 2018-03-28 12:27:54.058048993 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,14 +23,16 @@ * questions. */ +#include "jni.h" #include "dither.h" -sgn_ordered_dither_array std_img_oda_red; -sgn_ordered_dither_array std_img_oda_green; -sgn_ordered_dither_array std_img_oda_blue; -int std_odas_computed = 0; +JNIEXPORT sgn_ordered_dither_array std_img_oda_red; +JNIEXPORT sgn_ordered_dither_array std_img_oda_green; +JNIEXPORT sgn_ordered_dither_array std_img_oda_blue; +JNIEXPORT int std_odas_computed = 0; -void initInverseGrayLut(int* prgb, int rgbsize, ColorData *cData) { +JNIEXPORT void JNICALL +initInverseGrayLut(int* prgb, int rgbsize, ColorData *cData) { int *inverse; int lastindex, lastgray, missing, i; @@ -267,7 +269,8 @@ } -void make_dither_arrays(int cmapsize, ColorData *cData) { +JNIEXPORT void JNICALL +make_dither_arrays(int cmapsize, ColorData *cData) { int i, j, k; /*