]> sigrok.org Git - libserialport.git/blobdiff - windows.c
windows: -no-undefined is required to make a DLL.
[libserialport.git] / windows.c
index 4c81e2e50e68b2b0f3b3ab33cc0221eaed608ece..4bbce822940ddded91546be3eb811c2d69650be2 100644 (file)
--- a/windows.c
+++ b/windows.c
@@ -331,7 +331,7 @@ static void get_usb_details(struct sp_port *port, DEVINST dev_inst_match)
        return;
 }
 
-enum sp_return get_port_details(struct sp_port *port)
+SP_PRIV enum sp_return get_port_details(struct sp_port *port)
 {
        /* Description limited to 127 char,
           anything longer would not be user friendly anyway */
@@ -455,7 +455,7 @@ enum sp_return get_port_details(struct sp_port *port)
        RETURN_OK();
 }
 
-enum sp_return list_ports(struct sp_port ***list)
+SP_PRIV enum sp_return list_ports(struct sp_port ***list)
 {
        HKEY key;
        TCHAR *value, *data;
@@ -511,7 +511,7 @@ enum sp_return list_ports(struct sp_port ***list)
                strcpy(name, data);
 #endif
                if (type == REG_SZ) {
-                       DEBUG("Found port %s", name);
+                       DEBUG_FMT("Found port %s", name);
                        if (!(*list = list_append(*list, name))) {
                                SET_ERROR(ret, SP_ERR_MEM, "list append failed");
                                goto out;