ipad mini not charging

my ipad mini doesnt charge with my pc or any other electronic device exept my mac. What is the solution?